Skip to content

Commit d9e97b3

Browse files
committed
refactor: lucide imports
1 parent 6f5e99b commit d9e97b3

4 files changed

Lines changed: 13 additions & 19 deletions

File tree

apps/web/src/components/org-layout.tsx

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
import type { OrganizationInfo } from "@dafthunk/types";
2-
import {
3-
Database,
4-
KeyRound,
5-
LayoutDashboard,
6-
Lock,
7-
Logs,
8-
SquareTerminal,
9-
Target,
10-
Users,
11-
} from "lucide-react";
2+
import Database from "lucide-react/icons/database";
3+
import KeyRound from "lucide-react/icons/key-round";
4+
import LayoutDashboard from "lucide-react/icons/layout-dashboard";
5+
import Lock from "lucide-react/icons/lock";
6+
import Logs from "lucide-react/icons/logs";
7+
import SquareTerminal from "lucide-react/icons/square-terminal";
8+
import Target from "lucide-react/icons/target";
9+
import Users from "lucide-react/icons/users";
1210
import React, { useEffect } from "react";
1311
import { useParams } from "react-router";
1412

apps/web/src/pages/members-page.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import type { ColumnDef } from "@tanstack/react-table";
22
import { format } from "date-fns";
3-
import { MoreHorizontal, Plus } from "lucide-react";
3+
import MoreHorizontal from "lucide-react/icons/more-horizontal";
4+
import Plus from "lucide-react/icons/plus";
45
import { useCallback, useEffect, useState } from "react";
56
import { useParams } from "react-router";
67
import { toast } from "sonner";

apps/web/src/routes.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { Building2, User } from "lucide-react";
1+
import Building2 from "lucide-react/icons/building-2";
2+
import User from "lucide-react/icons/user";
23
import React from "react";
34
import type { RouteObject, RouterState } from "react-router";
45
import { Navigate } from "react-router";

apps/web/src/types/lucide.d.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
1-
import type { LucideIcon } from "lucide-react";
2-
3-
declare module "lucide-react/icons/*" {
4-
const icon: LucideIcon;
5-
export default icon;
6-
}
7-
81
declare module "lucide-react/icons/*" {
2+
import { LucideIcon } from "lucide-react";
93
const icon: LucideIcon;
104
export default icon;
115
}

0 commit comments

Comments
 (0)