Skip to content

Commit dd5df27

Browse files
committed
move components to folder
1 parent 9668d46 commit dd5df27

File tree

7 files changed

+10
-15
lines changed

7 files changed

+10
-15
lines changed

src/App.jsx

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

33
const App = () => {
44
return (
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import React, { useState, useEffect } from "react";
2-
import problemsData from "../problems.json";
3-
import StatsCard from "../StatsCard";
4-
import Filters from "./Filters";
5-
import ProblemTable from "../ProblemTable";
6-
import ExportImportControls from "./ExportImportControls";
1+
import { useState, useEffect } from "react";
2+
import problemsData from "./data/problems.json";
3+
import StatsCard from "./components/StatsCard";
4+
import Filters from "./components/Filters";
5+
import ProblemTable from "./components/ProblemTable";
6+
import ExportImportControls from "./components/ExportImportControls";
77
import { Info, ExternalLink, Map } from "lucide-react";
88

99
// --- Spaced repetition intervals ---

src/components/ExportImportControls.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from "react";
21
import { Download, Upload, Trash2 } from "lucide-react";
32

43
const ExportImportControls = ({ progress, setProgress }) => {

src/components/Filters.jsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from "react";
21
import { Filter } from "lucide-react";
32

43
const Filters = ({
@@ -18,7 +17,7 @@ const Filters = ({
1817
Filters
1918
</h2>
2019
</div>
21-
<div className="grid grid-cols-1 md:grid-cols-3 gap-4">
20+
<div className="grid grid-cols-1 md:grid-cols-3 gap-5 items-center">
2221
<div>
2322
<label className="block text-sm font-medium text-gray-700 mb-2">
2423
Category
@@ -42,7 +41,7 @@ const Filters = ({
4241
<select
4342
value={filterDifficulty}
4443
onChange={(e) => setFilterDifficulty(e.target.value)}
45-
className="w-full p-2 border border-gray-300rounded bg-white text-gray-900 focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-colors"
44+
className="w-full p-2 border border-gray-300 rounded bg-white text-gray-900 focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-colors"
4645
>
4746
{difficulties.map((diff) => (
4847
<option
@@ -55,7 +54,7 @@ const Filters = ({
5554
))}
5655
</select>
5756
</div>
58-
<div className="flex items-center gap-2">
57+
<div className="flex items-center gap-2 md:mt-6">
5958
<input
6059
type="checkbox"
6160
checked={showOnlyDueToday}
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from "react";
21
import { CheckCircle2, Circle, Calendar, ExternalLink } from "lucide-react";
32

43
const difficultyColor = {
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import React from "react";
2-
31
const colorClasses = {
42
blue: "bg-blue-50 text-blue-600",
53
green: "bg-green-50 text-green-600",

0 commit comments

Comments
 (0)