Skip to content

Commit 5969428

Browse files
fix(sonar): wildcard imports should not be used
1 parent b47cbba commit 5969428

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/src/content/docs/ui-and-theme/Forms.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Let's say you want to create a form that allows the user to log in to the applic
3636
The right way to validate a form is to create a schema validation. You can use any library you want but we recommend using zod as you can easily infer the types from the schema. Here is how you can create a schema validation for the login form:
3737

3838
```tsx
39-
import * as z from 'zod';
39+
import z from 'zod';
4040

4141
const schema = z.object({
4242
email: z.string().email(),
@@ -55,7 +55,7 @@ Here is how you can create your login screen:
5555
import { zodResolver } from '@hookform/resolvers/zod';
5656
import React from 'react';
5757
import { useForm } from 'react-hook-form';
58-
import * as z from 'zod';
58+
import z from 'zod';
5959

6060
import { useAuth } from '@/core';
6161
import { Button, ControlledInput, View } from '@/ui';

src/components/login-form.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import React from 'react';
33
import type { SubmitHandler } from 'react-hook-form';
44
import { useForm } from 'react-hook-form';
55
import { KeyboardAvoidingView } from 'react-native-keyboard-controller';
6-
import * as z from 'zod';
6+
import z from 'zod';
77

88
import { Button, ControlledInput, Text, View } from '@/ui';
99

0 commit comments

Comments
 (0)