fix linting & building errors
This commit is contained in:
parent
0dae4a750e
commit
a4b3adaace
|
@ -1,5 +1,4 @@
|
|||
import { Avatar, Card, CardBody } from "@nextui-org/react";
|
||||
import React from "react";
|
||||
|
||||
const items = [
|
||||
{
|
||||
|
|
|
@ -6,7 +6,6 @@ import {
|
|||
DropdownTrigger,
|
||||
NavbarItem,
|
||||
} from "@nextui-org/react";
|
||||
import React from "react";
|
||||
// import { NotificationIcon } from "../icons/navbar/notificationicon";
|
||||
|
||||
export const NotificationsDropdown = () => {
|
||||
|
|
|
@ -4,10 +4,8 @@ import {
|
|||
DropdownItem,
|
||||
DropdownMenu,
|
||||
DropdownTrigger,
|
||||
Navbar,
|
||||
NavbarItem,
|
||||
} from "@nextui-org/react";
|
||||
import React from "react";
|
||||
// import { DarkModeSwitch } from "./darkmodeswitch";
|
||||
|
||||
export const UserDropdown = () => {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import React, { useState } from "react";
|
||||
import { useState } from "react";
|
||||
import { Sidebar } from "./sidebar.styles";
|
||||
import { SidebarItem } from "./sidebar-item";
|
||||
import { SidebarMenu } from "./sidebar-menu";
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
"use client";
|
||||
import React, { useState } from "react";
|
||||
import React from "react";
|
||||
// import { ChevronUpIcon } from "../icons/sidebar/chevron-up-icon";
|
||||
import { Accordion, AccordionItem } from "@nextui-org/react";
|
||||
import clsx from "clsx";
|
||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||
import { faChevronDown, faChevronUp } from "@fortawesome/free-solid-svg-icons";
|
||||
import { faChevronDown } from "@fortawesome/free-solid-svg-icons";
|
||||
|
||||
interface Props {
|
||||
icon: React.ReactNode;
|
||||
|
@ -13,8 +12,6 @@ interface Props {
|
|||
}
|
||||
|
||||
export const CollapseItems = ({ icon, items, title }: Props) => {
|
||||
const [open, setOpen] = useState(false);
|
||||
|
||||
return (
|
||||
<div className="flex gap-4 h-full items-center cursor-pointer">
|
||||
<Accordion className="px-0">
|
||||
|
|
|
@ -6,7 +6,6 @@ import {
|
|||
TableHeader,
|
||||
TableRow,
|
||||
} from "@nextui-org/react";
|
||||
import React from "react";
|
||||
import { RenderCell } from "./render-cell";
|
||||
import { columns, users } from "./data";
|
||||
|
||||
|
|
|
@ -2,12 +2,13 @@
|
|||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Vite + React + TS</title>
|
||||
<title>canvas admin</title>
|
||||
|
||||
<link rel="stylesheet" href="./index.scss" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
<script type="module" src="/src/main.tsx"></script>
|
||||
<script type="module" src="./main.tsx"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,7 +1,6 @@
|
|||
import { faFile } from "@fortawesome/free-solid-svg-icons";
|
||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||
import { BreadcrumbItem, Breadcrumbs, Button, Input } from "@nextui-org/react";
|
||||
import { TableWrapper } from "../../../components/table/TableWrapper";
|
||||
import { AccountsTable } from "./AccountsTable";
|
||||
|
||||
export const AccountsPage = () => {
|
||||
|
|
|
@ -1,7 +1,16 @@
|
|||
import { defineConfig } from 'vite'
|
||||
import react from '@vitejs/plugin-react'
|
||||
import { defineConfig } from "vite";
|
||||
import react from "@vitejs/plugin-react";
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
})
|
||||
root: "src",
|
||||
envDir: "..",
|
||||
build: {
|
||||
outDir: "../dist",
|
||||
},
|
||||
plugins: [
|
||||
react({
|
||||
include: "**/*.{jsx,tsx}",
|
||||
}),
|
||||
],
|
||||
});
|
||||
|
|
|
@ -5,7 +5,7 @@ export default defineConfig({
|
|||
root: "src",
|
||||
envDir: "..",
|
||||
build: {
|
||||
outDir: "dist",
|
||||
outDir: "../dist",
|
||||
},
|
||||
plugins: [
|
||||
react({
|
||||
|
|
Loading…
Reference in New Issue