Skip to content

Commit

Permalink
Fixed issue for createTheme_default being undefined
Browse files Browse the repository at this point in the history
* Made sure that all materials are imported from the top level
* See issue mui/material-ui#31835
* Small cosmetic changes for the other mui/material imports
  • Loading branch information
Jbekker committed Oct 22, 2024
1 parent 4638c86 commit b8aa997
Show file tree
Hide file tree
Showing 10 changed files with 38 additions and 42 deletions.
2 changes: 1 addition & 1 deletion src/components/BasicDateCalendar/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import { createTheme, ThemeProvider } from "@mui/material/styles";
import { createTheme, ThemeProvider } from "@mui/material";
import { LocalizationProvider } from "@mui/x-date-pickers/LocalizationProvider";
import { AdapterMoment } from "@mui/x-date-pickers/AdapterMoment";
import { DateCalendar } from "@mui/x-date-pickers/DateCalendar";
Expand Down
3 changes: 1 addition & 2 deletions src/components/DiscreteSlider/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import * as React from "react";
import Box from "@mui/material/Box";
import Slider from "@mui/material/Slider";
import { Box, Slider } from "@mui/material";

function valuetext(value: number) {
return `${value}%`;
Expand Down
5 changes: 1 addition & 4 deletions src/components/FarmCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ import { getToken, getTokens, updateToken } from "../../store/tokenSlice";
import { UnknownAction } from "@reduxjs/toolkit";
import ArrowForwardIcon from "@mui/icons-material/ArrowForward";

import Accordion from "@mui/material/Accordion";
import AccordionActions from "@mui/material/AccordionActions";
import AccordionSummary from "@mui/material/AccordionSummary";
import AccordionDetails from "@mui/material/AccordionDetails";
import { Accordion, AccordionActions, AccordionSummary, AccordionDetails } from "@mui/material";
import ExpandMoreIcon from "@mui/icons-material/ExpandMore";
import BigNumber from "bignumber.js";
import { getAlgorandClients } from "../../wallets";
Expand Down
15 changes: 8 additions & 7 deletions src/components/NFTCollectionTable/index.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import React from "react";
import { styled as mstyled } from "@mui/system";
import Table from "@mui/material/Table";
import TableBody from "@mui/material/TableBody";
import TableCell from "@mui/material/TableCell";
import TableContainer from "@mui/material/TableContainer";
import TableHead from "@mui/material/TableHead";
import TableRow from "@mui/material/TableRow";
import Paper from "@mui/material/Paper";
import {
Table,
TableBody,
TableCell,
TableContainer,
TableHead,
TableRow,
} from "@mui/material";
import { useSelector } from "react-redux";
import { RootState } from "../../store/store";
import styled from "styled-components";
Expand Down
15 changes: 8 additions & 7 deletions src/components/NFTListingTable/index.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import React, { useMemo, useState } from "react";
import { styled as mstyled } from "@mui/system";
import Table from "@mui/material/Table";
import TableBody from "@mui/material/TableBody";
import TableCell from "@mui/material/TableCell";
import TableContainer from "@mui/material/TableContainer";
import TableHead from "@mui/material/TableHead";
import TableRow from "@mui/material/TableRow";
import Paper from "@mui/material/Paper";
import {
Table,
TableBody,
TableCell,
TableContainer,
TableHead,
TableRow,
} from "@mui/material";
import { useSelector } from "react-redux";
import { RootState } from "../../store/store";
import styled from "styled-components";
Expand Down
15 changes: 8 additions & 7 deletions src/components/NFTSaleActivityTable/index.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import React, { useMemo } from "react";
import { styled as mstyled } from "@mui/system";
import Table from "@mui/material/Table";
import TableBody from "@mui/material/TableBody";
import TableCell from "@mui/material/TableCell";
import TableContainer from "@mui/material/TableContainer";
import TableHead from "@mui/material/TableHead";
import TableRow from "@mui/material/TableRow";
import Paper from "@mui/material/Paper";
import {
Table,
TableBody,
TableCell,
TableContainer,
TableHead,
TableRow,
} from "@mui/material";
import { useSelector } from "react-redux";
import { RootState } from "../../store/store";
import styled from "styled-components";
Expand Down
15 changes: 8 additions & 7 deletions src/components/NFTSalesTable/index.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import React from "react";
import { styled } from "@mui/system";
import Table from "@mui/material/Table";
import TableBody from "@mui/material/TableBody";
import TableCell from "@mui/material/TableCell";
import TableContainer from "@mui/material/TableContainer";
import TableHead from "@mui/material/TableHead";
import TableRow from "@mui/material/TableRow";
import Paper from "@mui/material/Paper";
import {
Table,
TableBody,
TableCell,
TableContainer,
TableHead,
TableRow,
} from "@mui/material";
import { useSelector } from "react-redux";
import { RootState } from "../../store/store";

Expand Down
5 changes: 1 addition & 4 deletions src/components/NFTTabs/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import * as React from "react";
import Tabs from "@mui/material/Tabs";
import Tab from "@mui/material/Tab";
import Typography from "@mui/material/Typography";
import Box from "@mui/material/Box";
import { Box, Tabs, Tab, Typography } from "@mui/material";
import axios from "axios";
import NFTSalesTable from "../NFTSalesTable";
import moment from "moment";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Navbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Home from "../../components/SVG/Home";
import TokenLogo from "../../components/SVG/Token";
import { RootState } from "../../store/store";
import { useSelector } from "react-redux";
import Box from "@mui/material/Box";
import { Box } from "@mui/material";
import { useWallet } from "@txnlab/use-wallet-react";
import { useCopyToClipboard } from "usehooks-ts";
import { toast } from "react-toastify";
Expand Down
3 changes: 1 addition & 2 deletions src/components/RankingList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import React, { useMemo } from "react";
import { styled as mstyled } from "@mui/system";
import { useSelector } from "react-redux";
import { RootState } from "../../store/store";
import { Box, Grid } from "@mui/material";
import Stack from "@mui/material/Stack";
import { Box, Grid, Stack } from "@mui/material";
import styled from "styled-components";
import { collections } from "../../constants/games";
import { Link, useNavigate } from "react-router-dom";
Expand Down

0 comments on commit b8aa997

Please sign in to comment.