mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Format front
This commit is contained in:
parent
ac55a56e4a
commit
e3824fc740
@ -84,7 +84,7 @@ export default function Root() {
|
||||
>
|
||||
<PortalProvider>
|
||||
<AccountProvider>
|
||||
<Slot/>
|
||||
<Slot />
|
||||
</AccountProvider>
|
||||
</PortalProvider>
|
||||
</ThemeSelector>
|
||||
|
@ -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("/?", "?");
|
||||
|
@ -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>
|
||||
);
|
||||
|
@ -473,7 +473,7 @@ export const Header = ({
|
||||
/>
|
||||
))}
|
||||
</Container>
|
||||
{type === "show" && <ShowWatchStatusCard {...data?.watchStatus as any} />}
|
||||
{type === "show" && <ShowWatchStatusCard {...(data?.watchStatus as any)} />}
|
||||
</>
|
||||
)}
|
||||
</Fetch>
|
||||
|
Loading…
x
Reference in New Issue
Block a user