Skip to content

Commit

Permalink
fix(webapp): tests and warning in console
Browse files Browse the repository at this point in the history
Related to #83
  • Loading branch information
JoosepAlviste committed Jan 5, 2024
1 parent 2723b7f commit 5a4478c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions apps/webapp/src/components/AlertDialog/AlertDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ const AlertDialogDialog = ({
{title}
</Text>
</AlertDialogRadix.Title>
<AlertDialogRadix.Description className={s.description}>
<Text variant="secondary">{description}</Text>
<AlertDialogRadix.Description className={s.description} asChild>
<Text as="p" variant="secondary">
{description}
</Text>
</AlertDialogRadix.Description>

<div className={s.actionsContainer}>{actions}</div>
Expand Down
4 changes: 2 additions & 2 deletions apps/webapp/src/features/series/episode.factory.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { format } from 'date-fns'
import { format, subDays } from 'date-fns'
import { Factory } from 'fishery'

import { type Episode } from '#/generated/gql/graphql'
Expand All @@ -13,6 +13,6 @@ export const episodeFactory = Factory.define<Episode>(({ sequence }) => ({
imdbId: 'tt123',
imdbRating: 4.4,
isSeen: false,
releasedAt: format(new Date(Date.now()), 'yyyy-MM-dd'),
releasedAt: format(subDays(new Date(Date.now()), 1), 'yyyy-MM-dd'),
season: seasonFactory.build(),
}))

0 comments on commit 5a4478c

Please sign in to comment.