Skip to content

Commit

Permalink
refactor: remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
gitwoz committed Nov 12, 2024
1 parent 481c3cf commit 53905cb
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 40 deletions.
3 changes: 0 additions & 3 deletions src/common/enums/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ export const GQL_CONTEXT_PUBLIC_QUERY_KEY = 'publicQuery'

export const VERIFICATION_CODE_TYPES = {
register: 'register',
email_reset: 'email_reset',
email_reset_confirm: 'email_reset_confirm',
password_reset: 'password_reset',
payment_password_reset: 'payment_password_reset',
}

Expand Down
30 changes: 0 additions & 30 deletions src/common/enums/oauth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,30 +99,6 @@ export const OAUTH_SCOPE_TREE = {
zh_hans: '关注标签',
},
},
updateTagSetting: {
_t: {
zh_hant: '管理標籤',
zh_hans: '管理标签',
},
},
addArticlesTags: {
_t: {
zh_hant: '添加作品到標籤',
zh_hans: '添加作品到标签',
},
},
updateArticlesTags: {
_t: {
zh_hant: '管理標籤作品',
zh_hans: '管理标签作品',
},
},
deleteArticlesTags: {
_t: {
zh_hant: '移除標籤作品',
zh_hans: '移除标签作品',
},
},
togglePinComment: {
_t: {
zh_hant: '精选評論',
Expand Down Expand Up @@ -279,12 +255,6 @@ export const OAUTH_SCOPE_TREE = {
zh_hans: '文件(图片、音频等)上传',
},
},
changeEmail: {
_t: {
zh_hant: '修改電子信箱',
zh_hans: '修改邮箱',
},
},
clearReadHistory: {
_t: {
zh_hant: '清空閱讀歷史',
Expand Down
1 change: 0 additions & 1 deletion src/components/GQL/queries/walletBalance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export default gql`
}
liker {
total
rateUSD
}
}
}
Expand Down
12 changes: 7 additions & 5 deletions src/views/Me/DraftDetail/Sidebar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,13 @@ const EditDraftCampaign = ({ draft, campaigns }: SidebarProps) => {
})

return (
<Sidebar.Campaign
appliedCampaign={appliedCampaign}
selectedStage={selectedStage}
editCampaign={edit}
/>
<>
<Sidebar.Campaign
appliedCampaign={appliedCampaign}
selectedStage={selectedStage}
editCampaign={edit}
/>
</>
)
}

Expand Down
1 change: 0 additions & 1 deletion src/views/Me/Wallet/Balance/LikeCoin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ const VIEWER_LIKE_BALANCE = gql`
id
liker {
total
rateUSD
}
}
}
Expand Down

0 comments on commit 53905cb

Please sign in to comment.