From a03f1dc2ac25579df30e8cb59d2703110c3e564d Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Wed, 13 Mar 2024 22:37:41 +0000 Subject: lint: Lint and format the entire repo with the new configs --- apps/mobile/components/ui/ActionButton.tsx | 3 ++- apps/mobile/components/ui/Button.tsx | 4 ++-- apps/mobile/components/ui/Divider.tsx | 1 - apps/mobile/components/ui/FullPageSpinner.tsx | 2 +- apps/mobile/components/ui/Input.tsx | 5 +++-- apps/mobile/components/ui/Skeleton.tsx | 6 +++--- apps/mobile/components/ui/Toast.tsx | 3 +-- 7 files changed, 12 insertions(+), 12 deletions(-) (limited to 'apps/mobile/components/ui') diff --git a/apps/mobile/components/ui/ActionButton.tsx b/apps/mobile/components/ui/ActionButton.tsx index c51eb332..1f2e05ca 100644 --- a/apps/mobile/components/ui/ActionButton.tsx +++ b/apps/mobile/components/ui/ActionButton.tsx @@ -1,4 +1,5 @@ -import { ActivityIndicator, Pressable, PressableProps } from "react-native"; +import type { PressableProps } from "react-native"; +import { ActivityIndicator, Pressable } from "react-native"; export function ActionButton({ children, diff --git a/apps/mobile/components/ui/Button.tsx b/apps/mobile/components/ui/Button.tsx index 4c3cbc69..0f3b4ab3 100644 --- a/apps/mobile/components/ui/Button.tsx +++ b/apps/mobile/components/ui/Button.tsx @@ -1,7 +1,7 @@ -import { type VariantProps, cva } from "class-variance-authority"; +import type { VariantProps } from "class-variance-authority"; import { Text, TouchableOpacity } from "react-native"; - import { cn } from "@/lib/utils"; +import { cva } from "class-variance-authority"; const buttonVariants = cva( "flex flex-row items-center justify-center rounded-md", diff --git a/apps/mobile/components/ui/Divider.tsx b/apps/mobile/components/ui/Divider.tsx index 1da0a71e..cf1b4624 100644 --- a/apps/mobile/components/ui/Divider.tsx +++ b/apps/mobile/components/ui/Divider.tsx @@ -1,5 +1,4 @@ import { View } from "react-native"; - import { cn } from "@/lib/utils"; function Divider({ diff --git a/apps/mobile/components/ui/FullPageSpinner.tsx b/apps/mobile/components/ui/FullPageSpinner.tsx index 01187f11..89b66090 100644 --- a/apps/mobile/components/ui/FullPageSpinner.tsx +++ b/apps/mobile/components/ui/FullPageSpinner.tsx @@ -1,4 +1,4 @@ -import { View, ActivityIndicator } from "react-native"; +import { ActivityIndicator, View } from "react-native"; export default function FullPageSpinner() { return ( diff --git a/apps/mobile/components/ui/Input.tsx b/apps/mobile/components/ui/Input.tsx index 2fcb2764..01c9fb2f 100644 --- a/apps/mobile/components/ui/Input.tsx +++ b/apps/mobile/components/ui/Input.tsx @@ -1,6 +1,5 @@ import { forwardRef } from "react"; import { Text, TextInput, View } from "react-native"; - import { cn } from "@/lib/utils"; export interface InputProps @@ -15,14 +14,16 @@ const Input = forwardRef, InputProps>( {label && {label}} ), ); +Input.displayName = "Input"; export { Input }; diff --git a/apps/mobile/components/ui/Skeleton.tsx b/apps/mobile/components/ui/Skeleton.tsx index 68b22e1e..3287b9ef 100644 --- a/apps/mobile/components/ui/Skeleton.tsx +++ b/apps/mobile/components/ui/Skeleton.tsx @@ -1,6 +1,6 @@ +import type { View } from "react-native"; import { useEffect, useRef } from "react"; -import { Animated, type View } from "react-native"; - +import { Animated } from "react-native"; import { cn } from "@/lib/utils"; function Skeleton({ @@ -28,7 +28,7 @@ function Skeleton({ return ( diff --git a/apps/mobile/components/ui/Toast.tsx b/apps/mobile/components/ui/Toast.tsx index fb319f84..9aa25e5c 100644 --- a/apps/mobile/components/ui/Toast.tsx +++ b/apps/mobile/components/ui/Toast.tsx @@ -1,6 +1,5 @@ import { createContext, useContext, useEffect, useRef, useState } from "react"; import { Animated, Text, View } from "react-native"; - import { cn } from "@/lib/utils"; const toastVariants = { @@ -67,7 +66,7 @@ function Toast({ ], }} > - {message} + {message} {showProgress && (