mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-06-02 21:24:20 -04:00
Format front
This commit is contained in:
parent
ac55a56e4a
commit
e3824fc740
@ -84,7 +84,7 @@ export default function Root() {
|
|||||||
>
|
>
|
||||||
<PortalProvider>
|
<PortalProvider>
|
||||||
<AccountProvider>
|
<AccountProvider>
|
||||||
<Slot/>
|
<Slot />
|
||||||
</AccountProvider>
|
</AccountProvider>
|
||||||
</PortalProvider>
|
</PortalProvider>
|
||||||
</ThemeSelector>
|
</ThemeSelector>
|
||||||
|
@ -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("/?", "?");
|
||||||
|
@ -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>
|
||||||
);
|
);
|
||||||
|
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user