diff --git a/README.md b/README.md index 2951509..136ac86 100644 --- a/README.md +++ b/README.md @@ -117,14 +117,13 @@ TODO better version where the token is also never exposed to the network so not ## Todos -- fancier checkbox - create a new invitation needs a change in react-native-libsodium (use noble?) -- on new list focus on the name input +- show pending changes in the sidebar and the list - use expo-secure-store for the sessionKey - encrypt MMKV storage on iOS and Android - logo and colors -- deploy to production (before move the repo) +- deploy to production (before move the repo & cleanup readme and make on initial commit) - locker bug during registration 🤷 diff --git a/apps/app/src/app/(app)/list/[listId].tsx b/apps/app/src/app/(app)/list/[listId].tsx index c24c432..77fe940 100644 --- a/apps/app/src/app/(app)/list/[listId].tsx +++ b/apps/app/src/app/(app)/list/[listId].tsx @@ -6,10 +6,10 @@ import { generateId } from "secsync"; import { useYjsSync } from "secsync-react-yjs"; import * as Yjs from "yjs"; import { Button } from "~/components/ui/button"; -import { Checkbox } from "~/components/ui/checkbox"; import { Input } from "~/components/ui/input"; import { Text } from "~/components/ui/text"; import { X } from "~/lib/icons/X"; +import { Checkbox } from "../../../components/checkbox"; import { DocumentMembers } from "../../../components/documentMember"; import { SubtleInput } from "../../../components/subtleInput"; import { UpdateDocumentNameForm } from "../../../components/updateDocumentNameForm"; diff --git a/apps/app/src/components/checkbox.tsx b/apps/app/src/components/checkbox.tsx new file mode 100644 index 0000000..7e4db56 --- /dev/null +++ b/apps/app/src/components/checkbox.tsx @@ -0,0 +1,35 @@ +import * as React from "react"; +import * as CheckboxPrimitive from "~/components/primitives/checkbox"; +import { Check } from "~/lib/icons/Check"; +import { cn } from "~/lib/utils"; + +const Checkbox = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => { + return ( + + + + + + ); +}); +Checkbox.displayName = CheckboxPrimitive.Root.displayName; + +export { Checkbox }; diff --git a/apps/app/src/rnr/lib/icons/Check.tsx b/apps/app/src/rnr/lib/icons/Check.tsx index 6c56d6d..e18348a 100644 --- a/apps/app/src/rnr/lib/icons/Check.tsx +++ b/apps/app/src/rnr/lib/icons/Check.tsx @@ -1,4 +1,4 @@ -import { Check } from 'lucide-react-native'; -import { iconWithClassName } from './iconWithClassName'; +import { Check } from "lucide-react-native"; +import { iconWithClassName } from "./iconWithClassName"; iconWithClassName(Check); -export { Check }; \ No newline at end of file +export { Check };