Skip to content

Commit

Permalink
feat: adding boost amount to sidebar items
Browse files Browse the repository at this point in the history
  • Loading branch information
Github Actions committed Sep 29, 2023
1 parent 1c56ac0 commit 7ba4a89
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/components/App/SideBar/Relevance/Episode/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import moment from 'moment'
import styled from 'styled-components'
import { Booster } from '~/components/Booster'
import { BoostAmt } from '~/components/App/Helper/BoostAmt'
import { Avatar } from '~/components/common/Avatar'
import { Flex } from '~/components/common/Flex'
import { FlexboxProps } from '~/components/common/Flex/flexbox'
Expand Down Expand Up @@ -84,8 +84,6 @@ export const Episode = ({
{!isSelectedView && (
<Flex align="center" pr={16}>
<Avatar src={imageUrl} type={type || ''} />

{false && <Booster count={boostCount} readOnly />}
</Flex>
)}

Expand All @@ -100,7 +98,7 @@ export const Episode = ({
<Flex direction="row" justify="flex-start">
{Boolean(date) && <Date>{moment.unix(date).format('ll')}</Date>}
{Boolean(title) && <Title>{title}</Title>}
{false && <Booster count={boostCount} />}
{(!isSelectedView && boostCount > 0) && <Flex style={{marginLeft: 'auto'}}><BoostAmt amt={boostCount} readOnly /></Flex>}

Check failure on line 101 in src/components/App/SideBar/Relevance/Episode/index.tsx

View workflow job for this annotation

GitHub Actions / craco-build-run

Type '{ amt: number; readOnly: true; }' is not assignable to type 'IntrinsicAttributes & Props'.

Check failure on line 101 in src/components/App/SideBar/Relevance/Episode/index.tsx

View workflow job for this annotation

GitHub Actions / eslint-run

Type '{ amt: number; readOnly: true; }' is not assignable to type 'IntrinsicAttributes & Props'.
</Flex>
</Flex>
</Flex>
Expand Down Expand Up @@ -155,6 +153,7 @@ export const Title = styled(Date)`
flex-direction: row;
align-items: center;
flex-shrink: 1;
max-width: 100px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
Expand Down

0 comments on commit 7ba4a89

Please sign in to comment.