style(biome): using biome for format, lint, check

This commit is contained in:
2025-11-08 12:58:40 +02:00
parent 075a388ccb
commit fdd1cbbfd5
152 changed files with 3737 additions and 3989 deletions
@@ -1,5 +1,3 @@
import type React from "react";
import { ArrowRight } from "@tamagui/lucide-icons";
import { Href, Link } from "expo-router";
import { GetProps, Paragraph, styled, XStack } from "tamagui";
@@ -7,41 +5,48 @@ import { GetProps, Paragraph, styled, XStack } from "tamagui";
import { Text } from "@/ui/components/typography";
const SectionContainer = styled(XStack, {
alignItems: "center",
justifyContent: "space-between",
width: "100%",
paddingVertical: "$2",
alignItems: "center",
justifyContent: "space-between",
paddingVertical: "$2",
width: "100%",
});
type ScreenSectionProps = GetProps<typeof SectionContainer> & {
title: string;
forwardLink?: Href;
title: string;
forwardLink?: Href;
};
type ScreenSectionLinkProps = {
href: Href;
href: Href;
};
const ScreenSectionLink = ({ href }: ScreenSectionLinkProps) => (
<Link href={href} push asChild>
<XStack gap="2" alignItems="center">
<Paragraph color="$accent5" fontWeight={500}>
Voir tout
</Paragraph>
<ArrowRight color="$accent5" />
</XStack>
</Link>
<Link asChild href={href} push>
<XStack alignItems="center" gap="2">
<Paragraph color="$accent5" fontWeight={500}>
Voir tout
</Paragraph>
<ArrowRight color="$accent5" />
</XStack>
</Link>
);
export const ScreenSection = (props: ScreenSectionProps) => {
const { title, forwardLink, ...rest } = props;
const { title, forwardLink, ...rest } = props;
return (
<SectionContainer {...rest}>
<Text fontSize="$6" fontWeight="bold" color="$color" numberOfLines={1} flexShrink={1} marginRight="$2">
{title}
</Text>
{forwardLink && <ScreenSectionLink href={forwardLink} />}
</SectionContainer>
);
return (
<SectionContainer {...rest}>
<Text
color="$color"
flexShrink={1}
fontSize="$6"
fontWeight="bold"
marginRight="$2"
numberOfLines={1}
>
{title}
</Text>
{forwardLink && <ScreenSectionLink href={forwardLink} />}
</SectionContainer>
);
};