Skip to content

Commit 0245aad

Browse files
committed
style: Standardize all imports to use @/ alias paths
- Convert relative imports (../) to @/ alias in index.tsx - Convert relative imports (../) to @/ alias in about.tsx - Convert relative imports (../../) to @/ alias in members/[id].tsx - Consistent with project conventions
1 parent a9e120a commit 0245aad

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

client/src/pages/about.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import { useCallback, useRef, useState } from "react";
44

55
import { ApiMember, useCommittee } from "@/hooks/useCommittee";
66

7-
import { DebrisBurst } from "../components/ui/DebrisBurst";
8-
import { Explosion } from "../components/ui/Explosion";
9-
import { useExplosions } from "../hooks/useExplosions";
7+
import { DebrisBurst } from "@/components/ui/DebrisBurst";
8+
import { Explosion } from "@/components/ui/Explosion";
9+
import { useExplosions } from "@/hooks/useExplosions";
1010

1111
// Max concurrent debris bursts to prevent lag
1212
const MAX_DEBRIS = 5;

client/src/pages/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ import {
1010
} from "@/components/ui/eventHighlightCard";
1111
import { placeholderEvents, placeholderGames } from "@/placeholderData";
1212

13-
import { Button } from "../components/ui/button";
14-
import { DebrisBurst } from "../components/ui/DebrisBurst";
15-
import { Explosion } from "../components/ui/Explosion";
16-
import { useExplosions } from "../hooks/useExplosions";
13+
import { Button } from "@/components/ui/button";
14+
import { DebrisBurst } from "@/components/ui/DebrisBurst";
15+
import { Explosion } from "@/components/ui/Explosion";
16+
import { useExplosions } from "@/hooks/useExplosions";
1717

1818
// Max concurrent debris bursts to prevent lag
1919
const MAX_DEBRIS = 5;

client/src/pages/members/[id].tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { useRouter } from "next/router";
22

33
import { useMember } from "@/hooks/useMember";
44

5-
import { MemberProfile } from "../../components/main/MemberProfile";
5+
import { MemberProfile } from "@/components/main/MemberProfile";
66

77
// hook assumes correct input, page sanitises to correct type
88
function normaliseId(id: string | string[] | number | undefined) {

0 commit comments

Comments
 (0)