Skip to content

Commit

Permalink
Merge pull request #217 from dappforce/deploy/low-comments
Browse files Browse the repository at this point in the history
Change verified icon
  • Loading branch information
teodorus-nathaniel authored Jan 30, 2024
2 parents 2bae2eb + bd416cf commit e40254d
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 8 deletions.
21 changes: 18 additions & 3 deletions src/components/main/HomePageFilters.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { Col, Radio, RadioChangeEvent, Row, Select } from 'antd'
import clsx from 'clsx'
import { useRouter } from 'next/router'
import { MdVerified } from 'react-icons/md'
import { ReactNode } from 'react-markdown'
import config from 'src/config'
import { useIsMyAddressWhitelisted } from 'src/config/constants'
import LatestPostsPage from '../posts/LatestPostsPage'
Expand Down Expand Up @@ -29,9 +31,18 @@ const commonFilterOption = [{ label: 'Latest', value: 'latest' }]
// ]
// : []

type Filter = { label: string; value: string; icon?: string }
type Filter = { label: string; value: string; icon?: ReactNode }

const verifiedIcon = (
<MdVerified className='VerifiedIcon FontSemilarge' style={{ top: '4px', position: 'relative' }} />
)

export const postFilterOpt: Filter[] = [
{ label: 'Featured Posts', icon: '✅', value: 'suggested' },
{
label: 'Featured Posts',
icon: verifiedIcon,
value: 'suggested',
},
{ label: 'Hot Posts', icon: '🔥', value: 'hot' },
{ label: 'All Posts', value: 'latest' },
// removed most liked and commented
Expand All @@ -55,7 +66,11 @@ export const commentFilterOpt: Filter[] = enableGraphQl
// : []

export const spaceFilterOpt: Filter[] = [
{ label: 'Featured Creators', icon: '✅', value: 'suggested' },
{
label: 'Featured Creators',
icon: verifiedIcon,
value: 'suggested',
},
{ label: 'Creators Staking', value: 'creators' },
// ...offchainSpaceFilterOpt,
]
Expand Down
5 changes: 3 additions & 2 deletions src/components/spaces/helpers/OfficialSpaceStatus.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { CheckCircleFilled, HourglassOutlined } from '@ant-design/icons'
import { HourglassOutlined } from '@ant-design/icons'
import { Tag, Tooltip } from 'antd'
import clsx from 'clsx'
import Link from 'next/link'
import { MdVerified } from 'react-icons/md'
import { useIsMobileWidthOrDevice } from 'src/components/responsive'
import messages from 'src/messages'
import { SpaceStruct } from 'src/types'
Expand All @@ -19,7 +20,7 @@ type InnerIconProps = {
icon: JSX.Element
}

const officialSpaceIcon = <CheckCircleFilled className={styles.ClaimedOfficialSpaceIcon} />
const officialSpaceIcon = <MdVerified className={styles.ClaimedOfficialSpaceIcon} />

const unclaimedSpaceIcon = <HourglassOutlined className={styles.ClaimSpacePendingIcon} />

Expand Down
6 changes: 3 additions & 3 deletions src/components/spaces/spaces.module.sass
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
text-align: left

.OfficialSpaceIcon
margin-left: $space_tiny
font-size: $font_big
margin-left: $space_mini
font-size: 1.1em

.ClaimedOfficialSpaceIcon
@extend .OfficialSpaceIcon
color: $color_green
color: #1D9AF1

.ClaimSpacePendingIcon
padding: $space_mini
Expand Down
4 changes: 4 additions & 0 deletions src/styles/subsocial.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2325,3 +2325,7 @@ hr {
}
}
}

.VerifiedIcon {
color: #1d9af1;
}

0 comments on commit e40254d

Please sign in to comment.