Skip to content

Commit 6b5a45e

Browse files
committed
fix: reorder import statements for consistency
Reorganized import statements across multiple files to maintain consistent import ordering. This includes grouping external imports, local imports, and type imports separately for better readability.
1 parent 458f4d2 commit 6b5a45e

File tree

97 files changed

+485
-411
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+485
-411
lines changed

apps/docs/app/examples/authentication/_components/user-auth-form.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
'use client';
22

3-
import { Icons } from '@/components/icons';
43
import { Button, cn, Label, TextInput } from '@codefast/ui';
54
import {
65
type HTMLAttributes,
@@ -10,6 +9,8 @@ import {
109
} from 'react';
1110
import { type SubmitHandler } from 'react-hook-form';
1211

12+
import { Icons } from '@/components/icons';
13+
1314
type UserAuthFormProps = HTMLAttributes<HTMLDivElement>;
1415

1516
export function UserAuthForm({

apps/docs/app/examples/authentication/page.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
import { UserAuthForm } from '@/app/examples/authentication/_components/user-auth-form';
21
import { buttonVariants, cn } from '@codefast/ui';
32
import { type Metadata } from 'next';
43
import Image from 'next/image';
54
import Link from 'next/link';
65
import { type JSX } from 'react';
76

7+
import { UserAuthForm } from '@/app/examples/authentication/_components/user-auth-form';
8+
89
export const metadata: Metadata = {
910
title: 'Authentication',
1011
description: 'Authentication forms built using the components.',

apps/docs/app/examples/cards/_components/create-account.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { Icons } from '@/components/icons';
21
import {
32
Button,
43
Card,
@@ -13,6 +12,8 @@ import {
1312
} from '@codefast/ui';
1413
import { type JSX } from 'react';
1514

15+
import { Icons } from '@/components/icons';
16+
1617
export function CreateAccount(): JSX.Element {
1718
return (
1819
<Card>

apps/docs/app/examples/cards/_components/date-picker.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
import { DatePickerWithRange } from '@/components/date-picker-with-range';
21
import { Card, CardBody, Label } from '@codefast/ui';
32
import { type JSX } from 'react';
43

4+
import { DatePickerWithRange } from '@/components/date-picker-with-range';
5+
56
export function DatePicker(): JSX.Element {
67
return (
78
<Card>

apps/docs/app/examples/cards/_components/payment-method.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { Icons } from '@/components/icons';
21
import {
32
Button,
43
Card,
@@ -19,6 +18,8 @@ import {
1918
} from '@codefast/ui';
2019
import { type JSX } from 'react';
2120

21+
import { Icons } from '@/components/icons';
22+
2223
export function PaymentMethod(): JSX.Element {
2324
return (
2425
<Card>

apps/docs/app/examples/cards/page.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
import { cn } from '@codefast/ui';
2+
import { type Metadata } from 'next';
3+
import Image from 'next/image';
4+
import { type HTMLAttributes, type JSX } from 'react';
5+
16
import { CookieSettings } from '@/app/examples/cards/_components/cookie-settings';
27
import { CreateAccount } from '@/app/examples/cards/_components/create-account';
38
import { DatePicker } from '@/app/examples/cards/_components/date-picker';
@@ -7,10 +12,6 @@ import { PaymentMethod } from '@/app/examples/cards/_components/payment-method';
712
import { ReportAnIssue } from '@/app/examples/cards/_components/report-an-issue';
813
import { ShareDocument } from '@/app/examples/cards/_components/share-document';
914
import { TeamMembers } from '@/app/examples/cards/_components/team-members';
10-
import { cn } from '@codefast/ui';
11-
import { type Metadata } from 'next';
12-
import Image from 'next/image';
13-
import { type HTMLAttributes, type JSX } from 'react';
1415

1516
export const metadata: Metadata = {
1617
title: 'Cards',

apps/docs/app/examples/charts/page.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
import { ChartAreaAxes } from '@/app/examples/charts/_components/chart-area-axes';
2-
import { ChartAreaDefault } from '@/app/examples/charts/_components/chart-area-default';
31
import { type Metadata } from 'next';
42
import { type JSX } from 'react';
53

4+
import { ChartAreaAxes } from '@/app/examples/charts/_components/chart-area-axes';
5+
import { ChartAreaDefault } from '@/app/examples/charts/_components/chart-area-default';
6+
67
export const metadata: Metadata = {
78
title: 'Charts',
89
};

apps/docs/app/examples/dashboard/page.tsx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
import { MainNav } from '@/app/examples/dashboard/_components/main-nav';
2-
import { Overview } from '@/app/examples/dashboard/_components/overview';
3-
import { RecentSales } from '@/app/examples/dashboard/_components/recent-sales';
4-
import { Search } from '@/app/examples/dashboard/_components/search';
5-
import { TeamSwitcher } from '@/app/examples/dashboard/_components/team-switcher';
6-
import { UserNav } from '@/app/examples/dashboard/_components/user-nav';
7-
import { DatePickerWithRange } from '@/components/date-picker-with-range';
81
import {
92
Button,
103
Card,
@@ -21,6 +14,14 @@ import { type Metadata } from 'next';
2114
import Image from 'next/image';
2215
import { type JSX, Suspense } from 'react';
2316

17+
import { MainNav } from '@/app/examples/dashboard/_components/main-nav';
18+
import { Overview } from '@/app/examples/dashboard/_components/overview';
19+
import { RecentSales } from '@/app/examples/dashboard/_components/recent-sales';
20+
import { Search } from '@/app/examples/dashboard/_components/search';
21+
import { TeamSwitcher } from '@/app/examples/dashboard/_components/team-switcher';
22+
import { UserNav } from '@/app/examples/dashboard/_components/user-nav';
23+
import { DatePickerWithRange } from '@/components/date-picker-with-range';
24+
2425
export const metadata: Metadata = {
2526
title: 'Dashboard',
2627
description: 'Example dashboard app built using the components.',

apps/docs/app/examples/forms/account/_components/account-form.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
'use client';
22

3-
import { updateAccount } from '@/app/examples/forms/account/_lib/actions/account-actions';
4-
import {
5-
type AccountFormValues,
6-
accountFormValues,
7-
} from '@/app/examples/forms/account/_lib/schema/account-schema';
83
import {
94
Button,
105
Calendar,
@@ -35,6 +30,12 @@ import { isNil } from 'lodash-es';
3530
import { type JSX } from 'react';
3631
import { type SubmitHandler, useForm } from 'react-hook-form';
3732

33+
import { updateAccount } from '@/app/examples/forms/account/_lib/actions/account-actions';
34+
import {
35+
type AccountFormValues,
36+
accountFormValues,
37+
} from '@/app/examples/forms/account/_lib/schema/account-schema';
38+
3839
const languages = [
3940
{ label: 'English', value: 'en' },
4041
{ label: 'French', value: 'fr' },

apps/docs/app/examples/forms/account/_lib/actions/account-actions.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
'use server';
22

3+
import { wait } from 'next/dist/lib/wait';
4+
35
import {
46
type AccountFormValues,
57
accountFormValues,
@@ -8,7 +10,6 @@ import {
810
type FieldValidationErrors,
911
type ServerResponse,
1012
} from '@/lib/types/server-actions';
11-
import { wait } from 'next/dist/lib/wait';
1213

1314
export async function updateAccount(
1415
data: AccountFormValues,

0 commit comments

Comments
 (0)