feat: add auth, hosts, & keychains ownership

This commit is contained in:
2024-11-10 18:49:35 +07:00
parent b2cc6778a6
commit 38e81049a1
31 changed files with 579 additions and 92 deletions
+12 -2
View File
@@ -4,11 +4,21 @@ import { Label, Text, View, XStack } from "tamagui";
type FormFieldProps = ComponentPropsWithoutRef<typeof XStack> & {
label?: string;
htmlFor?: string;
vertical?: boolean;
};
const FormField = ({ label, htmlFor, ...props }: FormFieldProps) => {
const FormField = ({
label,
htmlFor,
vertical = false,
...props
}: FormFieldProps) => {
return (
<XStack alignItems="flex-start" {...props}>
<XStack
flexDirection={vertical ? "column" : "row"}
alignItems={vertical ? "stretch" : "flex-start"}
{...props}
>
<Label htmlFor={htmlFor} w={120} $xs={{ w: 100 }}>
{label}
</Label>