Skip to content

Commit 1871941

Browse files
Josem1801Brayan-724
authored andcommitted
chore: add dynamic path aliases using @/ prefix
1 parent a3351be commit 1871941

File tree

12 files changed

+21
-13
lines changed

12 files changed

+21
-13
lines changed

js/react/lib/components/avatar/avatar.component.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { withAs } from "../../utils/hoc/with-as.hoc";
2-
import { cn } from "../../utils/tw-merge";
1+
import { withAs } from "@/utils/hoc";
2+
import { cn } from "@/utils/tw-merge";
33

44
type AvatarProps = {
55
avatarUrl: string;

js/react/lib/components/button/button.component.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { ReactNode } from "react";
2-
import { cn } from "../../utils/tw-merge";
32
import { ButtonVariants, variants } from "./button.const";
4-
import { withAs } from "../../utils/hoc/with-as.hoc";
3+
import { withAs } from "@/utils/hoc";
4+
import { cn } from "@/utils/tw-merge";
55

66
export type ButtonProps = {
77
variant?: ButtonVariants;

js/react/lib/components/chip/chip.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { cn } from "../../utils/tw-merge";
1+
import { cn } from "@/utils/tw-merge";
22
import { ChipVariants, icons, variants } from "./chip.const";
33
import React from "react";
44

js/react/lib/components/chip/chip.const.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Location, StarBold } from "../../icons";
1+
import { Location, StarBold } from "@/icons";
22

33
export const variants = {
44
featured: [

js/react/lib/components/collaborators/collaborators.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { Fragment } from "react/jsx-runtime";
2-
import { Github } from "../../icons";
32
import { Avatar } from "../avatar/avatar.component";
43
import { MAX_COLLABORATORS } from "./collaborators.const";
54
import { Button } from "../button";
5+
import { Github } from "@/icons";
66

77
type Collaborator = {
88
avatarUrl: string;

js/react/lib/components/flap/flap.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ComponentPropsWithoutRef } from "react";
22
import { FLAP_ICONS, FLAP_VARIANTS } from "./flap.const";
3-
import { cn } from "../../utils/tw-merge";
3+
import { cn } from "@/utils/tw-merge";
44

55
type FlapProps = {
66
label: string;

js/react/lib/components/flap/flap.const.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { StarBold } from "../../icons";
1+
import { StarBold } from "@/icons";
22

33
export const FLAP_VARIANTS = {
44
highlight: "text-primary-400",

js/react/lib/components/level/level.component.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { withAs } from "../../utils/hoc/with-as.hoc";
2-
import { cn } from "../../utils/tw-merge";
1+
import { withAs } from "@/utils/hoc";
2+
import { cn } from "@/utils/tw-merge";
33
import { LEVEL_LABELS, LEVEL_VARIANTS, LevelVariants } from "./level.const";
44

55
type LevelProps = {

js/react/lib/components/tag/tag.component.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { cn } from "../../utils/tw-merge";
1+
import { withAs } from "@/utils/hoc";
2+
import { cn } from "@/utils/tw-merge";
23
import { TAG_VARIANTS } from "./tag.const";
3-
import { withAs } from "../../utils/hoc/with-as.hoc";
44

55
type TagProps = {
66
label?: string;

js/react/lib/utils/hoc/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from "./with-as.hoc";

0 commit comments

Comments
 (0)