Skip to content

Commit 9fcd76b

Browse files
committed
fix: fix utils import
1 parent 2682334 commit 9fcd76b

File tree

5 files changed

+10
-4
lines changed

5 files changed

+10
-4
lines changed

example/src/examples/apple-nativewind.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import Animated, {
1111
useSharedValue,
1212
} from 'react-native-reanimated';
1313
import { useEffect } from 'react';
14-
import { cn } from '../lib/utils';
14+
import { cn } from './utils';
1515

1616
export default function AppleOTPInput() {
1717
const ref = useRef<OTPInputRef>(null);

example/src/examples/dashed-nativewind.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import Animated, {
1111
useSharedValue,
1212
} from 'react-native-reanimated';
1313
import { useEffect } from 'react';
14-
import { cn } from '../lib/utils';
14+
import { cn } from './utils';
1515

1616
export default function DashedOTPInput() {
1717
const ref = useRef<OTPInputRef>(null);

example/src/examples/revolt-nativewind.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import Animated, {
1111
useSharedValue,
1212
} from 'react-native-reanimated';
1313
import { useEffect } from 'react';
14-
import { cn } from '../lib/utils';
14+
import { cn } from './utils';
1515

1616
export default function RevoltOTPInput() {
1717
const ref = useRef<OTPInputRef>(null);

example/src/examples/stripe-nativewind.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import Animated, {
1111
useSharedValue,
1212
} from 'react-native-reanimated';
1313
import { useEffect } from 'react';
14-
import { cn } from '../lib/utils';
14+
import { cn } from './utils';
1515

1616
export default function StripeOTPInput() {
1717
const ref = useRef<OTPInputRef>(null);

example/src/examples/utils.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { type ClassValue, clsx } from 'clsx';
2+
import { twMerge } from 'tailwind-merge';
3+
4+
export function cn(...inputs: ClassValue[]) {
5+
return twMerge(clsx(inputs));
6+
}

0 commit comments

Comments
 (0)