aboutsummaryrefslogtreecommitdiffstats
path: root/apps/mobile/components/ui/Input.tsx
diff options
context:
space:
mode:
authorMohamedBassem <me@mbassem.com>2024-03-13 22:37:41 +0000
committerMohamed Bassem <me@mbassem.com>2024-03-14 16:40:45 +0000
commita03f1dc2ac25579df30e8cb59d2703110c3e564d (patch)
tree59315e73cd83dc391660071c70752cf23989b3da /apps/mobile/components/ui/Input.tsx
parent04572a8e5081b1e4871e273cde9dbaaa44c52fe0 (diff)
downloadkarakeep-a03f1dc2ac25579df30e8cb59d2703110c3e564d.tar.zst
lint: Lint and format the entire repo with the new configs
Diffstat (limited to 'apps/mobile/components/ui/Input.tsx')
-rw-r--r--apps/mobile/components/ui/Input.tsx5
1 files changed, 3 insertions, 2 deletions
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<React.ElementRef<typeof TextInput>, InputProps>(
<View className={cn("flex flex-col gap-1.5", className)}>
{label && <Text className={cn("text-base", labelClasses)}>{label}</Text>}
<TextInput
+ ref={ref}
className={cn(
inputClasses,
- "border-input rounded-lg border px-4 py-2.5",
+ "rounded-lg border border-input px-4 py-2.5",
)}
{...props}
/>
</View>
),
);
+Input.displayName = "Input";
export { Input };