Skip to content

Commit fba1546

Browse files
authored
Refactor Nexus component and related functions
1 parent 7309083 commit fba1546

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

frontend/src/Nexus.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React, { useState, useEffect, useRef } from 'react'
22
import { clsx } from "clsx"
33
import { twMerge } from "tailwind-merge"
4+
import { cn } from './utils/cn'
45
import {
56
Activity, Wifi, Cpu, HardDrive, Download, Upload,
67
LayoutDashboard, Server, CheckSquare, Settings, User,
@@ -11,8 +12,6 @@ import {
1112
Tooltip, ResponsiveContainer
1213
} from 'recharts'
1314

14-
export function cn(...inputs) { return twMerge(clsx(inputs)) }
15-
1615
const Button = React.forwardRef(({ className, variant = "default", size = "default", ...props }, ref) => {
1716
const variants = {
1817
default: "bg-indigo-600 text-white hover:bg-indigo-700",

0 commit comments

Comments
 (0)