Format front

This commit is contained in:
Zoe Roux 2023-12-11 01:49:23 +01:00
parent ac55a56e4a
commit e3824fc740
4 changed files with 7 additions and 5 deletions

View File

@ -84,7 +84,7 @@ export default function Root() {
> >
<PortalProvider> <PortalProvider>
<AccountProvider> <AccountProvider>
<Slot/> <Slot />
</AccountProvider> </AccountProvider>
</PortalProvider> </PortalProvider>
</ThemeSelector> </ThemeSelector>

View File

@ -63,8 +63,8 @@ export const queryFn = async <Data,>(
"path" in context "path" in context
? (context.path.filter((x) => x) as string[]) ? (context.path.filter((x) => x) as string[])
: "pageParam" in context && context.pageParam : "pageParam" in context && context.pageParam
? [context.pageParam as string] ? [context.pageParam as string]
: (context.queryKey.filter((x) => x) as string[]), : (context.queryKey.filter((x) => x) as string[]),
) )
.join("/") .join("/")
.replace("/?", "?"); .replace("/?", "?");

View File

@ -30,7 +30,9 @@ export const Rating = ({ rating, color }: { rating?: number; color: Breakpoint<s
<View {...css({ flexDirection: "row", alignItems: "center" })}> <View {...css({ flexDirection: "row", alignItems: "center" })}>
<Icon icon={Star} color={color} {...css({ marginRight: ts(0.5) })} /> <Icon icon={Star} color={color} {...css({ marginRight: ts(0.5) })} />
<Skeleton {...css({ width: rem(2) })}> <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> </Skeleton>
</View> </View>
); );

View File

@ -473,7 +473,7 @@ export const Header = ({
/> />
))} ))}
</Container> </Container>
{type === "show" && <ShowWatchStatusCard {...data?.watchStatus as any} />} {type === "show" && <ShowWatchStatusCard {...(data?.watchStatus as any)} />}
</> </>
)} )}
</Fetch> </Fetch>