Skip to content

Commit

Permalink
chore: change banner to use general one instead of space specific ban…
Browse files Browse the repository at this point in the history
…ner in post page
  • Loading branch information
teodorus-nathaniel committed Feb 1, 2024
1 parent 9555552 commit 99d5e1e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/creators/CreatorDashboardSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { useFetchTotalStake } from 'src/rtk/features/creators/totalStakeHooks'
import { useMyAddress } from '../auth/MyAccountsContext'
import CreatePostCard from './cards/CreatePostCard'
import CreatorInfoCard from './cards/CreatorInfoCard'
import StakeSubCard from './cards/StakeSubCard'
import SupportCreatorsCard from './cards/SupportCreatorsCard'
import RewardInfoCard from './rewards/RewardInfoCard'

Expand Down Expand Up @@ -87,8 +86,7 @@ function PostPageSidebar({ space }: Extract<CreatorDashboardSidebarType, { name:
return (
<>
<CreatorInfoCard space={space} />
{!loadingTotalStake &&
(data?.hasStaked ? <RewardInfoCard /> : <StakeSubCard space={space} />)}
{!loadingTotalStake && (data?.hasStaked ? <RewardInfoCard /> : <SupportCreatorsCard />)}
</>
)
}

0 comments on commit 99d5e1e

Please sign in to comment.