Update frontend-web dependencies and implement routing structure
- Added new dependencies: @fontsource-variable/geist, @radix-ui/react-separator, @radix-ui/react-tooltip, date-fns, react-router-dom, and recharts. - Updated index.html to set the HTML class to "dark" for dark mode support. - Refactored App component to implement routing with React Router, replacing the previous UI structure with a layout and multiple pages (NetWorth, Debts, Invoices, Clients). - Enhanced CSS for dark mode and added depth utilities for improved UI aesthetics. - Expanded Redux store to include net worth, debts, and invoices slices for comprehensive state management.
This commit is contained in:
@@ -1,10 +1,16 @@
|
||||
import {configureStore} from '@reduxjs/toolkit';
|
||||
import userReducer from './slices/userSlice';
|
||||
import netWorthReducer from './slices/netWorthSlice';
|
||||
import debtsReducer from './slices/debtsSlice';
|
||||
import invoicesReducer from './slices/invoicesSlice';
|
||||
|
||||
export const store = configureStore({
|
||||
reducer: {
|
||||
user: userReducer
|
||||
}
|
||||
user: userReducer,
|
||||
netWorth: netWorthReducer,
|
||||
debts: debtsReducer,
|
||||
invoices: invoicesReducer,
|
||||
},
|
||||
});
|
||||
|
||||
export type RootState = ReturnType<typeof store.getState>;
|
||||
|
||||
Reference in New Issue
Block a user