Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
rajatsandeepsen committed Apr 26, 2024
1 parent c7d89cd commit 78b997d
Show file tree
Hide file tree
Showing 85 changed files with 8,243 additions and 7,356 deletions.
11 changes: 7 additions & 4 deletions apps/native/src/components/DrawerToggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@ import { AlignJustify } from "~/components/Icons";
import { cn } from "~/lib/utils";

export function DrawerToggle() {
const navigation = useNavigation<DrawerNavigationProp<{
Home: undefined;
Settings: undefined;
}>>();
const navigation =
useNavigation<
DrawerNavigationProp<{
Home: undefined;
Settings: undefined;
}>
>();

return (
<Pressable
Expand Down
51 changes: 30 additions & 21 deletions apps/native/src/components/Icons.tsx
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
import {
AlignJustify,
Check,
ChevronDown,
ChevronRight,
ChevronUp,
type LucideIcon, MoonStar,
Sun,
X,
AlignJustify,
Check,
ChevronDown,
ChevronRight,
ChevronUp,
type LucideIcon,
MoonStar,
Sun,
X,
} from "lucide-react-native";
import { cssInterop } from "nativewind";

function interopIcon(icon: LucideIcon) {
cssInterop(icon, {
interopIcon: true,
});
// // class: {
// // target: 'style',
// // nativeStyleToProp: {
// // color: true,
// // opacity: true,
// // },
// // },
// });
cssInterop(icon, {
interopIcon: true,
});
// // class: {
// // target: 'style',
// // nativeStyleToProp: {
// // color: true,
// // opacity: true,
// // },
// // },
// });
}

interopIcon(ChevronUp);
Expand All @@ -33,6 +34,14 @@ interopIcon(Sun);
interopIcon(MoonStar);
interopIcon(X);


export { Check, ChevronDown, ChevronUp, AlignJustify, Sun, MoonStar, ChevronRight, X };
export {
Check,
ChevronDown,
ChevronUp,
AlignJustify,
Sun,
MoonStar,
ChevronRight,
X,
};
export type { LucideIcon };
Loading

0 comments on commit 78b997d

Please sign in to comment.