Skip to content

Commit

Permalink
Format front
Browse files Browse the repository at this point in the history
  • Loading branch information
zoriya committed Dec 11, 2023
1 parent ac55a56 commit e3824fc
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion front/apps/mobile/app/_layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export default function Root() {
>
<PortalProvider>
<AccountProvider>
<Slot/>
<Slot />
</AccountProvider>
</PortalProvider>
</ThemeSelector>
Expand Down
4 changes: 2 additions & 2 deletions front/packages/models/src/query.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ export const queryFn = async <Data,>(
"path" in context
? (context.path.filter((x) => x) as string[])
: "pageParam" in context && context.pageParam
? [context.pageParam as string]
: (context.queryKey.filter((x) => x) as string[]),
? [context.pageParam as string]
: (context.queryKey.filter((x) => x) as string[]),
)
.join("/")
.replace("/?", "?");
Expand Down
4 changes: 3 additions & 1 deletion front/packages/ui/src/components/rating.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ export const Rating = ({ rating, color }: { rating?: number; color: Breakpoint<s
<View {...css({ flexDirection: "row", alignItems: "center" })}>
<Icon icon={Star} color={color} {...css({ marginRight: ts(0.5) })} />
<Skeleton {...css({ width: rem(2) })}>
{rating !== undefined && <P {...css({ color, verticalAlign: "middle" })}>{rating ? rating / 10 : "??"} / 10</P>}
{rating !== undefined && (
<P {...css({ color, verticalAlign: "middle" })}>{rating ? rating / 10 : "??"} / 10</P>
)}
</Skeleton>
</View>
);
Expand Down
2 changes: 1 addition & 1 deletion front/packages/ui/src/details/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ export const Header = ({
/>
))}
</Container>
{type === "show" && <ShowWatchStatusCard {...data?.watchStatus as any} />}
{type === "show" && <ShowWatchStatusCard {...(data?.watchStatus as any)} />}
</>
)}
</Fetch>
Expand Down

0 comments on commit e3824fc

Please sign in to comment.