Skip to content

Commit

Permalink
feat(ArticleDetail): update archived state
Browse files Browse the repository at this point in the history
  • Loading branch information
wlliaml committed Sep 3, 2024
1 parent 481bc2a commit 93093d4
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/views/ArticleDetail/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -582,18 +582,14 @@ const ArticleDetail = ({
<EmptyLayout>
<Error
message={
article.state === 'archived' ? (
<FormattedMessage
defaultMessage="Hmm... It seems the author has hidden this work. Go see something else"
id="qhVSGI"
/>
) : article.state === 'banned' ? (
article.state === 'banned' ? (
<FormattedMessage
defaultMessage="This work is archived due to violation of community guidelines."
id="/dKzfc"
/>
) : null
}
type="not_found"
>
<BackToHomeButton />
</Error>
Expand Down

0 comments on commit 93093d4

Please sign in to comment.