diff --git a/front/apps/web/src/pages/_app.tsx b/front/apps/web/src/pages/_app.tsx index a9fa9d40..7283dc34 100755 --- a/front/apps/web/src/pages/_app.tsx +++ b/front/apps/web/src/pages/_app.tsx @@ -83,6 +83,7 @@ const GlobalCssTheme = () => { const YoshikiDebug = ({ children }: { children: JSX.Element }) => { if (typeof window === "undefined") return children; + // eslint-disable-next-line react-hooks/rules-of-hooks const registry = useStyleRegistry(); return {children}; }; diff --git a/front/packages/primitives/src/utils/breakpoints.ts b/front/packages/primitives/src/utils/breakpoints.ts index 3f2faf12..8b3b3261 100644 --- a/front/packages/primitives/src/utils/breakpoints.ts +++ b/front/packages/primitives/src/utils/breakpoints.ts @@ -19,10 +19,12 @@ */ import { useWindowDimensions } from "react-native"; -import { AtLeastOne, Breakpoints as YoshikiBreakpoint } from "yoshiki/dist/type"; +import { Breakpoints as YoshikiBreakpoint } from "yoshiki/dist/type"; import { isBreakpoints } from "yoshiki/dist/utils"; import { breakpoints } from "yoshiki/native"; +type AtLeastOne }> = Partial & U[keyof U]; + export type Breakpoint = T | AtLeastOne>; // copied from yoshiki.