Skip to content

Commit

Permalink
Merge pull request #715 from thematters/feat/deprecate-tag
Browse files Browse the repository at this point in the history
feat(tag): deprecate unused
  • Loading branch information
pauljusti authored Nov 17, 2024
2 parents 182f47b + 53f919c commit c29b6ae
Show file tree
Hide file tree
Showing 16 changed files with 131 additions and 682 deletions.
6 changes: 3 additions & 3 deletions src/components/Tag/DigestList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import DateTime from '../../DateTime'
import SetBoost from '../../SetBoost'
import TagLink from '../../Tag/Link'
import TagStateTag from '../../Tag/StateTag'
import ToggleSelected from '../ToggleSelected'
// import ToggleSelected from '../ToggleSelected'
import withTagMutaitons, {
TagMutationsChildProps,
} from '../../../hocs/withTagMutations'
Expand Down Expand Up @@ -448,7 +448,7 @@ class TagDigestList extends React.Component<
width={100}
/>
)}
{inRecommendedTagsPage && (
{/* {inRecommendedTagsPage && (
<Table.Column<TagDigest>
dataIndex="oss.selected"
title="推薦精選"
Expand All @@ -457,7 +457,7 @@ class TagDigestList extends React.Component<
<ToggleSelected checked={selected} tagId={record.id} />
)}
/>
)}
)} */}
</Table>
</>
)
Expand Down
55 changes: 0 additions & 55 deletions src/components/Tag/ToggleSelected/index.tsx

This file was deleted.

41 changes: 0 additions & 41 deletions src/components/Tag/ToggleSelected/withToggleSelected.ts

This file was deleted.

81 changes: 0 additions & 81 deletions src/components/User/ResetWallet/index.tsx

This file was deleted.

38 changes: 0 additions & 38 deletions src/components/User/ResetWallet/withResetWallet.ts

This file was deleted.

13 changes: 0 additions & 13 deletions src/definitions/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,24 +85,13 @@ export type TagDigest = {
oss: {
boost: number
score: number
selected: boolean
}
deleted: boolean
}

export type TagDetail = TagDigest & {
articles: Connection<ArticleDigest>
remark: string
creator: {
id: string
userName: string
displayName: string
}
editors: Array<{
id: string
userName: string
displayName: string
}>
}

/**
Expand Down Expand Up @@ -143,8 +132,6 @@ export type ArticleDetail = ArticleDigest & {
appreciationsReceivedTotal: number
collection: Connection<ArticleDigest>
collectedBy: Connection<ArticleDigest>
subscribers: UserDigest[]
subscribed: boolean
hasAppreciate: boolean
remark: string
comments: Connection<CommentDigest>
Expand Down
Loading

0 comments on commit c29b6ae

Please sign in to comment.