From 02294a489cfb7c87d411b3e1de44b3955b12f306 Mon Sep 17 00:00:00 2001 From: Sahas Date: Sun, 29 Oct 2023 02:12:09 +0530 Subject: [PATCH] fix: offchain poll posts --- .../OptionPoll/CreateOptionPoll.tsx | 2 +- .../Post/ActionsBar/ReportButton/index.tsx | 11 +++++++--- .../PostEditOrLinkCTA/ContinueWithLinking.tsx | 8 +++---- .../ContinueWithoutLinking.tsx | 8 +++---- .../PostEditOrLinkCTA/LinkingAndEditing.tsx | 14 ++++++------- src/components/Post/Poll/GeneralSignals.tsx | 21 ++++++++++++------- src/ui-components/AddTags.tsx | 4 ++-- src/ui-components/AyeNayButtons.tsx | 4 ++-- styles/globals.css | 2 ++ tailwind.config.js | 2 ++ 10 files changed, 45 insertions(+), 31 deletions(-) diff --git a/src/components/Post/ActionsBar/OptionPoll/CreateOptionPoll.tsx b/src/components/Post/ActionsBar/OptionPoll/CreateOptionPoll.tsx index 4fd6db62fd..8b9246d32d 100644 --- a/src/components/Post/ActionsBar/OptionPoll/CreateOptionPoll.tsx +++ b/src/components/Post/ActionsBar/OptionPoll/CreateOptionPoll.tsx @@ -141,7 +141,7 @@ const CreatePoll: FC = (props) => { return ( <> = (props) => { key='back' disabled={loading} onClick={() => setShowModal(false)} + className='dark:bg-transparent' > Cancel , diff --git a/src/components/Post/GovernanceSideBar/PostEditOrLinkCTA/ContinueWithLinking.tsx b/src/components/Post/GovernanceSideBar/PostEditOrLinkCTA/ContinueWithLinking.tsx index 7e668512b1..c285017d37 100644 --- a/src/components/Post/GovernanceSideBar/PostEditOrLinkCTA/ContinueWithLinking.tsx +++ b/src/components/Post/GovernanceSideBar/PostEditOrLinkCTA/ContinueWithLinking.tsx @@ -184,8 +184,8 @@ const ContinueWithLinking: FC = (props) => { loading={loading} disabled={formDisabled} onClick={() => form.submit()} - className={`'border-none capitalize' rounded-[4px] bg-pink_primary px-4 py-1 text-sm font-medium leading-[21px] tracking-[0.0125em] text-white outline-none ${ - formDisabled ? 'cursor-not-allowed' : 'cursor-pointer' + className={`'border-none capitalize' rounded-[4px] bg-pink_primary px-4 py-1 text-sm font-medium leading-[21px] tracking-[0.0125em] text-white outline-none dark:border-none ${ + formDisabled ? 'cursor-not-allowed' : 'cursor-pointer dark:border-none' }`} > {url && prevUrl === url ? 'Save' : 'Preview'} @@ -206,7 +206,7 @@ const ContinueWithLinking: FC = (props) => { > Link Discussion Post} + label={Link Discussion Post} rules={[ { required: true @@ -223,7 +223,7 @@ const ContinueWithLinking: FC = (props) => { setPost(undefined); }} placeholder='Enter your post URL here' - className='rounded-[4px] border border-solid border-[rgba(72,95,125,0.2)] p-2 text-sm font-medium leading-[21px] tracking-[0.01em] text-[#475F7D] placeholder:text-[#CED4DE] dark:border-[#3B444F] dark:bg-transparent dark:text-blue-dark-high dark:focus:border-[#91054F]' + className='rounded-[4px] border border-solid border-[rgba(72,95,125,0.2)] p-2 text-sm font-medium leading-[21px] tracking-[0.01em] text-[#475F7D] placeholder:text-[#CED4DE] dark:border-separatorDark dark:bg-transparent dark:font-light dark:text-white dark:focus:border-[#91054F]' /> = (props) => { > Title} + label={Title} rules={[ { required: true @@ -130,15 +130,15 @@ const ContinueWithoutLinking: FC = (props) => { name='title' autoFocus placeholder='Add your title here' - className='rounded-[4px] border border-solid border-[rgba(72,95,125,0.2)] p-2 text-sm font-medium leading-[21px] tracking-[0.01em] text-[#475F7D] placeholder:text-[#CED4DE] dark:border-[#3B444F] dark:bg-transparent dark:text-blue-dark-high dark:focus:border-[#91054F]' + className='rounded-[4px] border border-solid border-[rgba(72,95,125,0.2)] p-2 text-sm font-medium leading-[21px] tracking-[0.01em] text-[#475F7D] placeholder:text-[#CED4DE] dark:border-separatorDark dark:bg-transparent dark:font-normal dark:text-white dark:focus:border-[#91054F]' />
- +
- + = (props) => { > Title} + label={Title} rules={[ { required: true @@ -287,11 +287,11 @@ const LinkingAndEditing: FC = (props) => { })) } placeholder='Add your title here' - className='rounded-[4px] border border-solid border-[rgba(72,95,125,0.2)] p-2 text-sm font-medium leading-[21px] tracking-[0.01em] text-[#475F7D] placeholder:text-[#CED4DE] dark:border-[#3B444F] dark:bg-transparent dark:text-blue-dark-high dark:focus:border-[#91054F]' + className='rounded-[4px] border border-solid border-[rgba(72,95,125,0.2)] p-2 text-sm font-medium leading-[21px] tracking-[0.01em] text-[#475F7D] placeholder:text-[#CED4DE] dark:border-separatorDark dark:bg-transparent dark:text-white dark:focus:border-[#91054F] dark:font-normal' />
- + { setEditPostValue((prev) => ({ @@ -303,7 +303,7 @@ const LinkingAndEditing: FC = (props) => { />
- + = (props) => {
{post_link ? (
-

Linked Discussion

+

Linked Discussion