From 1a48bc7bd8b1f97a82deeebad16a8f9bdc7fc47e Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Fri, 13 Mar 2026 17:41:56 +0100 Subject: [PATCH] Fix typescript issues --- front/src/primitives/icons.tsx | 3 ++- front/src/query/fetch-infinite.tsx | 2 +- front/src/ui/navbar.tsx | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/front/src/primitives/icons.tsx b/front/src/primitives/icons.tsx index 0af44470..861b2ec8 100644 --- a/front/src/primitives/icons.tsx +++ b/front/src/primitives/icons.tsx @@ -1,5 +1,6 @@ import { type ComponentProps, type ComponentType, useState } from "react"; -import { Animated, type PressableProps } from "react-native"; +import type { PressableProps } from "react-native"; +import Animated from "react-native-reanimated"; import RSvg, { type SvgProps } from "react-native-svg"; import { withUniwind } from "uniwind"; import { cn } from "~/utils"; diff --git a/front/src/query/fetch-infinite.tsx b/front/src/query/fetch-infinite.tsx index a1efb4a6..0c60aca0 100644 --- a/front/src/query/fetch-infinite.tsx +++ b/front/src/query/fetch-infinite.tsx @@ -4,7 +4,7 @@ import type { } from "@legendapp/list/react-native"; import { LegendList } from "@legendapp/list/react-native"; import { type ComponentType, type ReactElement, useMemo, useRef } from "react"; -import { Platform, type ViewStyle } from "react-native"; +import type { ViewStyle } from "react-native"; import { createAnimatedComponent } from "react-native-reanimated"; import { type Breakpoint, HR, useBreakpointMap } from "~/primitives"; import { type QueryIdentifier, useInfiniteFetch } from "./query"; diff --git a/front/src/ui/navbar.tsx b/front/src/ui/navbar.tsx index 909b0f30..b1bba29e 100644 --- a/front/src/ui/navbar.tsx +++ b/front/src/ui/navbar.tsx @@ -135,7 +135,7 @@ const SearchBar = () => { style={[ expanded ? { flex: 1 } : { backgroundColor: "transparent" }, { - transitionProperty: "background-color", + transitionProperty: "backgroundColor", transitionDuration: "300ms", }, ]}