diff --git a/front/packages/primitives/src/icons.tsx b/front/packages/primitives/src/icons.tsx index 0c297232..486693a9 100644 --- a/front/packages/primitives/src/icons.tsx +++ b/front/packages/primitives/src/icons.tsx @@ -22,7 +22,7 @@ import React, { ComponentProps, ComponentType, ForwardedRef, forwardRef } from " import { Platform, PressableProps, ViewStyle } from "react-native"; import { SvgProps } from "react-native-svg"; import { YoshikiStyle } from "yoshiki"; -import { px, Theme, useYoshiki } from "yoshiki/native"; +import { px, Stylable, Theme, useYoshiki } from "yoshiki/native"; import { PressableFeedback } from "./links"; import { alpha } from "./themes"; import { Breakpoint, ts, useBreakpointValue } from "./utils"; @@ -126,7 +126,7 @@ export const IconFab = ( ); }; -export const DottedSeparator = () => { +export const DottedSeparator = (props: Stylable) => { const { css } = useYoshiki(); - return

{String.fromCharCode(0x2022)}

; + return

{String.fromCharCode(0x2022)}

; }; diff --git a/front/packages/ui/src/components/rating.tsx b/front/packages/ui/src/components/rating.tsx index 840e24bb..8c41d2eb 100644 --- a/front/packages/ui/src/components/rating.tsx +++ b/front/packages/ui/src/components/rating.tsx @@ -18,19 +18,19 @@ * along with Kyoo. If not, see . */ -import { Icon, P, Skeleton, ts } from "@kyoo/primitives"; +import { Breakpoint, Icon, P, Skeleton, ts } from "@kyoo/primitives"; import { View } from "react-native"; import Star from "@material-symbols/svg-400/rounded/star-fill.svg"; import { rem, useYoshiki } from "yoshiki/native"; -export const Rating = ({ rating }: { rating?: number }) => { +export const Rating = ({ rating, color }: { rating?: number, color: Breakpoint }) => { const { css } = useYoshiki(); return ( - + - {rating !== undefined &&

{rating ? rating / 10 : "??"} / 10

} + {rating !== undefined &&

{rating ? rating / 10 : "??"} / 10

}
); diff --git a/front/packages/ui/src/details/header.tsx b/front/packages/ui/src/details/header.tsx index 694f94c3..555c4a79 100644 --- a/front/packages/ui/src/details/header.tsx +++ b/front/packages/ui/src/details/header.tsx @@ -225,14 +225,23 @@ export const TitleLine = ({ )} {rating !== null && ( <> - - + + )} {runtime && ( <> - -

{displayRuntime(runtime)}

+ +

+ {displayRuntime(runtime)} +

)}