Small fixes
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "triggerfrontend",
|
||||
"private": true,
|
||||
"version": "0.0.0",
|
||||
"version": "0.1.0",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
@@ -14,7 +14,7 @@ import {
|
||||
createRoutesFromElements,
|
||||
} from 'react-router-dom';
|
||||
import { Loading, MainLayout, ThemeProvider } from './components';
|
||||
import '@mantine/core/styles.css'; //import Mantine V7 styles needed by MRT
|
||||
import '@mantine/core/styles.css';
|
||||
import { ReactQueryDevtools } from '@tanstack/react-query-devtools';
|
||||
import './index.css';
|
||||
import { Homepage, Settings } from 'pages';
|
||||
|
||||
@@ -89,7 +89,7 @@ export function useCommonHooks() {
|
||||
'(\\?[;&a-z\\d%_.~+=-]*)?' + // query string
|
||||
'(\\#[-a-z\\d_]*)?$',
|
||||
'i',
|
||||
); // fragment locator
|
||||
);
|
||||
|
||||
const reorder = (list: any, startIndex: number, endIndex: number) => {
|
||||
const result = Array.from(list);
|
||||
|
||||
@@ -2,7 +2,6 @@ import path from 'node:path';
|
||||
import react from '@vitejs/plugin-react';
|
||||
import { defineConfig, loadEnv } from 'vite';
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig(({ mode }) => {
|
||||
const env = loadEnv(mode, process.cwd());
|
||||
return {
|
||||
@@ -20,7 +19,8 @@ export default defineConfig(({ mode }) => {
|
||||
'@tanstack/react-query-devtools',
|
||||
'@tanstack/react-query-persist-client',
|
||||
],
|
||||
utils: ['@hello-pangea/dnd', 'recharts', 'react-toastify', 'jotai'],
|
||||
recharts: ['recharts'],
|
||||
utils: ['@hello-pangea/dnd', 'react-toastify', 'jotai'],
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user