Skip to content

Commit

Permalink
migrating routes to ts
Browse files Browse the repository at this point in the history
  • Loading branch information
tahmid-saj committed Sep 21, 2024
1 parent 867b54c commit c029c67
Show file tree
Hide file tree
Showing 21 changed files with 4 additions and 4 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/components/shared/mui/tabs/tabs.component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import TabContext from '@mui/lab/TabContext';
import TabList from '@mui/lab/TabList';
import TabPanel from '@mui/lab/TabPanel';

export default function ItemTabs({ outerBoxStyles, innerBoxStyles, tabList, panelList }) {
export default function ItemTabs({ outerBoxStyles={}, innerBoxStyles={}, tabList, panelList }) {
const [value, setValue] = useState(tabList[0].value);

const handleChange = (event, newValue) => {
Expand Down
4 changes: 2 additions & 2 deletions src/index.js → src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { DashboardProvider as DashboardProviderSignedIn } from './contexts/signe
import { ExportsProvider } from './contexts/signed-in/exports/exports.context';

import { Provider } from 'react-redux';
import { persistor, store } from "./store/store"
import { store } from "./store/store"
import { PersistGate } from 'redux-persist/integration/react';

import { ApolloClient, InMemoryCache, ApolloProvider } from '@apollo/client';
Expand All @@ -37,7 +37,7 @@ import { ApolloClient, InMemoryCache, ApolloProvider } from '@apollo/client';
// cache: new InMemoryCache()
// })

const root = ReactDOM.createRoot(document.getElementById('root'));
const root = ReactDOM.createRoot(document.getElementById('root')!);
root.render(
<React.StrictMode>
<Provider store={ store }>
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Outlet } from "react-router-dom";

import "./navigation.styles.jsx";
import { DrawerContainer } from "./navigation.styles.jsx";
import MiniDrawer from "../../../components/shared/mui/drawer/drawer.component";
import MiniDrawer from "../../../components/shared/mui/drawer/drawer.component.jsx";
import { NAV_LINKS } from "../../../utils/constants/shared.constants.js";

import { useSelector } from "react-redux";
Expand Down

0 comments on commit c029c67

Please sign in to comment.