Skip to content

Commit

Permalink
feat: improve imports
Browse files Browse the repository at this point in the history
  • Loading branch information
NedcloarBR committed Jan 14, 2025
1 parent 36dd8f3 commit d775937
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 29 deletions.
2 changes: 1 addition & 1 deletion src/components/header/header-anchor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { useTranslations } from "next-intl";
import { ComponentProps, MouseEvent, useEffect, useState } from "react"
import { Button } from "../ui";
import { Button } from "@/components/ui";
interface Props extends ComponentProps<"a"> {
target: string
text?: string
Expand Down
14 changes: 7 additions & 7 deletions src/components/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
export * from "./about";
export * from "./back-to-top";
export * from "./change-language";
export * from "./contact"
export * from "./footer"
export * from "./header"
export * from "./contact";
export * from "./footer";
export * from "./header";
export * from "./icon";
export * from "./main-container"
export * from "./projects"
export * from "./start"
export * from "./theme"
export * from "./main-container";
export * from "./projects";
export * from "./start";
export * from "./theme";
19 changes: 10 additions & 9 deletions src/components/projects/full-card.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
"use client";

import {
Dialog,
DialogContent,
DialogDescription,
DialogHeader,
} from "../ui/dialog";
import { DialogTitle } from "@radix-ui/react-dialog";
import type { Dispatch, SetStateAction } from "react";
import { ProjectCarousel } from "./project-carousel";
import { Project } from "@/@types";
import { Icon } from "../icon";
import { Icon } from "@/components";
import { LucideUpload } from "lucide-react";
import { Button, Separator } from "../ui";
import {
Button,
Dialog,
DialogContent,
DialogDescription,
DialogHeader,
DialogTitle,
Separator
} from "@/components/ui";
import { useTranslations } from "next-intl";
import Link from "next/link";

Expand Down
5 changes: 3 additions & 2 deletions src/components/projects/project-carousel.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
"use client";

import { Card, CardContent } from "@/components/ui/card";
import {
Card,
CardContent,
Carousel,
CarouselContent,
CarouselItem,
CarouselNext,
CarouselPrevious,
} from "@/components/ui/carousel";
} from "@/components/ui";
import { useEffect, useState } from "react";

interface ProjectCarouselProps {
Expand Down
2 changes: 1 addition & 1 deletion src/components/projects/projects.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useTranslations } from "next-intl";
import { ProjectsSmallCard } from "./small-card";
import { projects } from "@/constants/projects";
import { projects } from "@/constants";

export function ProjectsSection() {
const t = useTranslations("Projects");
Expand Down
10 changes: 5 additions & 5 deletions src/components/projects/small-card.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
"use client"

import {
import { Icon } from "@/components";
import {
Card,
CardContent,
CardDescription,
CardFooter,
CardHeader,
CardTitle,
} from "@/components/ui/card";
import { Icon } from "../icon";
import { Separator } from "../ui";
CardTitle,
Separator
} from "@/components/ui";
import { Project } from "@/@types";
import { ProjectsFullCard } from "./full-card";
import { useState } from "react";
Expand Down
11 changes: 7 additions & 4 deletions src/components/ui/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
export * from "./button"
export * from "./dropdown-menu"
export * from "./separator"
export * from "./sheet"
export * from "./button";
export * from "./card";
export * from "./carousel";
export * from "./dialog";
export * from "./dropdown-menu";
export * from "./separator";
export * from "./sheet";
1 change: 1 addition & 0 deletions src/constants/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from "./skills";
export * from "./projects";

0 comments on commit d775937

Please sign in to comment.