Small fixes

This commit is contained in:
Sean Edmunds
2025-04-25 15:18:08 -05:00
parent fe4ce6150b
commit f44f6e004b
4 changed files with 5 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
{
"name": "triggerfrontend",
"private": true,
"version": "0.0.0",
"version": "0.1.0",
"type": "module",
"scripts": {
"dev": "vite",

View File

@@ -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';

View File

@@ -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);

View File

@@ -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'],
},
},
},