Skip to content

Commit

Permalink
fix: restructure the code
Browse files Browse the repository at this point in the history
  • Loading branch information
Pulkitxm committed Oct 26, 2024
1 parent e7812fe commit 570258f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/Skills/Items.tsx → app/data/Items.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import {
IconSqlAlechemy,
IconTailwindcss,
IconTypescript,
} from "./Icons";
} from "../../lib/skills-Icons";

type Item = {
name: string;
Expand Down
3 changes: 2 additions & 1 deletion components/Skills/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";
import React, { useEffect, useMemo, useState } from "react";
import { displayItems } from "./Items";
import { displayItems } from "../../app/data/Items";
import {
Accordion,
AccordionContent,
Expand All @@ -20,6 +20,7 @@ export default function Skills() {
setWindowWidth(window.innerWidth);
};
window.addEventListener("resize", handleResize);
handleResize();
return () => window.removeEventListener("resize", handleResize);
}, []);

Expand Down
2 changes: 1 addition & 1 deletion components/Skills/Icons.tsx → lib/skills-Icons.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ICON_SIZE } from "../Blogs/types";
import { ICON_SIZE } from "../components/Blogs/types";

const getSizeConfig = (size: ICON_SIZE, isSizeLarge: boolean = false) =>
isSizeLarge
Expand Down

0 comments on commit 570258f

Please sign in to comment.