diff --git a/src/components/AppLayout/NavHeader.tsx b/src/components/AppLayout/NavHeader.tsx index 7b86608459..9e5d206081 100644 --- a/src/components/AppLayout/NavHeader.tsx +++ b/src/components/AppLayout/NavHeader.tsx @@ -3,7 +3,7 @@ // of the Apache-2.0 license. See the LICENSE file for details. /* eslint-disable no-tabs */ -import { ApplayoutIdentityIcon, Dashboard, OptionMenu } from '~src/ui-components/CustomIcons'; +import { ApplayoutIdentityIcon, Dashboard, OptionMenu, PolkasafeWhiteIcon } from '~src/ui-components/CustomIcons'; import { CloseOutlined } from '@ant-design/icons'; import Image from 'next/image'; import { Button, Divider, Skeleton, Space } from 'antd'; @@ -37,7 +37,6 @@ import { useNetworkSelector, useUserDetailsSelector } from '~src/redux/selectors import { useDispatch } from 'react-redux'; import { logout, setUserDetailsState } from '~src/redux/userDetails'; import { useTheme } from 'next-themes'; -import PolkaSafeDarkIcon from '~assets/polkasafe-white-logo.svg'; const RPCDropdown = dynamic(() => import('~src/ui-components/RPCDropdown'), { loading: () => , @@ -118,9 +117,9 @@ const NavHeader = ({ className, sidedrawer, setSidedrawer, displayName, isVerifi rel='noreferrer' className='custom-link' > - + -
TownHall
+ TownHall
) @@ -135,9 +134,15 @@ const NavHeader = ({ className, sidedrawer, setSidedrawer, displayName, isVerifi rel='noreferrer' className='custom-link' > - - {theme === 'dark' ? : } - Polkasafe + + {theme === 'dark' ? ( + + + + ) : ( + + )} + Polkasafe ) diff --git a/src/components/Post/Comment/Comment.tsx b/src/components/Post/Comment/Comment.tsx index bce38fd741..2cc74197bb 100644 --- a/src/components/Post/Comment/Comment.tsx +++ b/src/components/Post/Comment/Comment.tsx @@ -98,7 +98,7 @@ export const Comment: FC = (props) => { />
= (props) => { >
getFilteredComments(data.sentiment)} - className={`flex cursor-pointer items-center gap-[3.46px] rounded-[4px] p-[3.17px] text-xs hover:bg-[#FEF2F8] dark:bg-[#33071E] ${ + className={`flex cursor-pointer items-center gap-[3.46px] rounded-[4px] p-[3.17px] text-xs hover:bg-[#FEF2F8] ${ checkActive(data.sentiment) && 'bg-[#FEF2F8] text-pink_primary dark:bg-[#33071E]' } ${loading ? 'pointer-events-none cursor-not-allowed opacity-50' : ''} ${ overallSentiments[data.sentiment] == 0 ? 'pointer-events-none' : '' diff --git a/src/components/Post/Comment/EditableCommentContent.tsx b/src/components/Post/Comment/EditableCommentContent.tsx index 766adeb895..d9d69e92a2 100644 --- a/src/components/Post/Comment/EditableCommentContent.tsx +++ b/src/components/Post/Comment/EditableCommentContent.tsx @@ -627,7 +627,7 @@ const EditableCommentContent: FC = (props) => { }} className='mb-0' /> -
+
Sentiment:
{handleSentimentText()}
@@ -668,13 +668,13 @@ const EditableCommentContent: FC = (props) => { @@ -775,14 +775,14 @@ const EditableCommentContent: FC = (props) => { htmlType='button' disabled={loadingReply} onClick={handleReplyCancel} - className='mr-2 flex items-center dark:bg-transparent dark:text-white' + className='mr-2 flex items-center dark:border-[#3B444F] dark:bg-transparent dark:text-white' > Cancel diff --git a/src/components/Post/Comment/EditableReplyContent.tsx b/src/components/Post/Comment/EditableReplyContent.tsx index 8471b63a55..713e324b5a 100644 --- a/src/components/Post/Comment/EditableReplyContent.tsx +++ b/src/components/Post/Comment/EditableReplyContent.tsx @@ -540,13 +540,13 @@ const EditableReplyContent = ({ userId, className, commentId, content, replyId, @@ -560,10 +560,10 @@ const EditableReplyContent = ({ userId, className, commentId, content, replyId, className='rounded-b-md bg-[#ebf0f5] px-2 py-2 text-sm dark:bg-[#141416] md:px-4' md={content} /> -
+
{isEditable && ( diff --git a/src/ui-components/CommentHistoryModal.tsx b/src/ui-components/CommentHistoryModal.tsx index 04528ece99..e032521652 100644 --- a/src/ui-components/CommentHistoryModal.tsx +++ b/src/ui-components/CommentHistoryModal.tsx @@ -64,7 +64,7 @@ export const getSentimentIcon = (sentiment: ESentiment, theme: string) => { const CommentHistoryModal = ({ className, open, setOpen, history, defaultAddress, username, user_id }: Props) => { const [historyData, setHistoryData] = useState(history); const getSentimentLabel = (sentiment: ESentiment) => { - return
{getSentimentTitle(sentiment)}
; + return
{getSentimentTitle(sentiment)}
; }; const { resolvedTheme: theme } = useTheme(); const items: TimelineItemProps[] = historyData?.map((item, index) => { diff --git a/src/ui-components/CreationLabel.tsx b/src/ui-components/CreationLabel.tsx index a5f239b511..09ed3fe361 100644 --- a/src/ui-components/CreationLabel.tsx +++ b/src/ui-components/CreationLabel.tsx @@ -104,7 +104,7 @@ const CreationLabel: FC = (props) => { const { resolvedTheme: theme } = useTheme(); const getSentimentLabel = (sentiment: ESentiment) => { - return
{getSentimentTitle(sentiment)}
; + return
{getSentimentTitle(sentiment)}
; }; const items: MenuProps['items'] = [ diff --git a/src/ui-components/CustomIcons.tsx b/src/ui-components/CustomIcons.tsx index 4b8715d2c7..1601f55846 100644 --- a/src/ui-components/CustomIcons.tsx +++ b/src/ui-components/CustomIcons.tsx @@ -6,6 +6,7 @@ import Icon from '@ant-design/icons'; import type { CustomIconComponentProps } from '@ant-design/icons/lib/components/Icon'; import React from 'react'; +import PolkasafeWhiteIconSVG from '~assets/polkasafe-white-logo.svg'; import CautionIcon from '~assets/icons/Caution 2.svg'; import RetrySVG from '~assets/icons/Refresh.svg'; import OpenAiSVG from '~assets/icons/openai.svg'; @@ -128,6 +129,13 @@ import TechComIconSVG from '~assets/icons/tech-com-icon.svg'; import DelegateProfileGreyIcon from '~assets/icons/delegate-title.svg'; import VoteDataSVG from '~assets/icons/vote-data-icon.svg'; +export const PolkasafeWhiteIcon = (props: Partial) => ( + +); + export const Caution = (props: Partial) => (