-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(mobile): fix biome issues (#86)
- Loading branch information
Showing
42 changed files
with
583 additions
and
467 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
import * as z from 'zod'; | ||
import * as z from 'zod' | ||
|
||
export const emailFormSchema = z.object({ | ||
emailAddress: z.string().email().min(1, { message: 'Input your email address' }), | ||
}); | ||
emailAddress: z | ||
.string() | ||
.email() | ||
.min(1, { message: 'Input your email address' }), | ||
}) | ||
|
||
export type EmailFormValues = z.infer<typeof emailFormSchema>; | ||
export type EmailFormValues = z.infer<typeof emailFormSchema> | ||
|
||
export const verifyEmailFormSchema = z.object({ | ||
code: z.string().min(1, { message: 'Input the verification code' }), | ||
}); | ||
}) | ||
|
||
export type VerifyEmailFormValues = z.infer<typeof verifyEmailFormSchema>; | ||
export type VerifyEmailFormValues = z.infer<typeof verifyEmailFormSchema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
import { cn } from "@/lib/utils" | ||
import { PlusCircleIcon } from "lucide-react-native" | ||
import { Button } from "../ui/button" | ||
import { Text } from "../ui/text" | ||
import { cn } from '@/lib/utils' | ||
import { PlusCircleIcon } from 'lucide-react-native' | ||
import { Button } from '../ui/button' | ||
import { Text } from '../ui/text' | ||
|
||
type AddNewButtonProps = { | ||
label: string | ||
className?: string | ||
onPress?: () => void | ||
} | ||
|
||
export function AddNewButton( | ||
{ label, className, onPress }: AddNewButtonProps, | ||
) { | ||
export function AddNewButton({ label, className, onPress }: AddNewButtonProps) { | ||
return ( | ||
<Button variant='outline' onPress={onPress} className={cn( | ||
'border-dashed items-center gap-4 mx-6 my-1.5 !h-11 !py-2', | ||
className | ||
)}> | ||
<PlusCircleIcon className='w-5 h-5 text-muted-foreground' /> | ||
<Text className="font-normal font-sans"> | ||
{label} | ||
</Text> | ||
<Button | ||
variant="outline" | ||
onPress={onPress} | ||
className={cn( | ||
'border-dashed items-center gap-4 mx-6 my-1.5 !h-11 !py-2', | ||
className, | ||
)} | ||
> | ||
<PlusCircleIcon className="w-5 h-5 text-muted-foreground" /> | ||
<Text className="font-normal font-sans">{label}</Text> | ||
</Button> | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
import { useRouter } from "expo-router"; | ||
import { ArrowLeftIcon } from "lucide-react-native"; | ||
import { Button } from "../ui/button"; | ||
import { useRouter } from 'expo-router' | ||
import { ArrowLeftIcon } from 'lucide-react-native' | ||
import { Button } from '../ui/button' | ||
|
||
export function BackButton() { | ||
const router = useRouter() | ||
if (!router.canGoBack) { | ||
return null | ||
} | ||
return ( | ||
<Button size='icon' variant='ghost' onPress={router.back}> | ||
<ArrowLeftIcon className='w-6 h-6 text-primary' /> | ||
<Button size="icon" variant="ghost" onPress={router.back}> | ||
<ArrowLeftIcon className="w-6 h-6 text-primary" /> | ||
</Button> | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.