- 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.
18 lines
531 B
TypeScript
18 lines
531 B
TypeScript
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,
|
|
netWorth: netWorthReducer,
|
|
debts: debtsReducer,
|
|
invoices: invoicesReducer,
|
|
},
|
|
});
|
|
|
|
export type RootState = ReturnType<typeof store.getState>;
|
|
export type AppDispatch = typeof store.dispatch;
|