Skip to content
This repository has been archived by the owner on Jan 2, 2024. It is now read-only.

Commit

Permalink
🎨 Run Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
bakseter committed Nov 16, 2023
1 parent 361187a commit ad0d63f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/post-preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ const PostPreview = ({ post, ...props }: Props) => {
isNorwegian
? post.body.no.slice(0, 100)
: post.body.en
? post.body.en.slice(0, 100)
: post.body.no.slice(0, 100),
? post.body.en.slice(0, 100)
: post.body.no.slice(0, 100),
)} ...»`}
</Text>
<Text
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/profile-info.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,8 @@ const ProfileInfo = () => {
? 'Endringer lagret!'
: 'Changes saved!'
: isNorwegian
? 'Lagre endringer'
: 'Save changes'}
? 'Lagre endringer'
: 'Save changes'}
</Button>
<Button
data-cy="sign-out-btn"
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/pages/posts/[slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ const PostPage = ({ post }: Props): JSX.Element => {
{isNorwegian
? post.body.no
: // eslint-disable-next-line unicorn/prefer-logical-operator-over-ternary
post.body.en
? post.body.en
: '(No english version avalible) \n\n' + post.body.no}
post.body.en
? post.body.en
: '(No english version avalible) \n\n' + post.body.no}
</Markdown>
</Section>
</Box>
Expand Down

0 comments on commit ad0d63f

Please sign in to comment.