diff --git a/src/modules/etherlink/creator/EvmDaoSummary.tsx b/src/modules/etherlink/creator/EvmDaoSummary.tsx
index 37cb57e2c..286211fb4 100644
--- a/src/modules/etherlink/creator/EvmDaoSummary.tsx
+++ b/src/modules/etherlink/creator/EvmDaoSummary.tsx
@@ -21,7 +21,7 @@ import { CopyButton } from "modules/common/CopyButton"
export const EvmDaoSummary = () => {
const theme = useTheme()
- const isMobileSmall = useMediaQuery(theme.breakpoints.down("sm"))
+ const isMobileSmall = useMediaQuery(theme.breakpoints.down("lg"))
const { data } = useEvmDaoCreateStore()
const isWrappedToken = data?.tokenDeploymentMechanism === "wrapped"
diff --git a/src/modules/etherlink/explorer/EtherlinkDAO/EvmOffchainProposalDetailPage.tsx b/src/modules/etherlink/explorer/EtherlinkDAO/EvmOffchainProposalDetailPage.tsx
index 4142358e3..92f776022 100644
--- a/src/modules/etherlink/explorer/EtherlinkDAO/EvmOffchainProposalDetailPage.tsx
+++ b/src/modules/etherlink/explorer/EtherlinkDAO/EvmOffchainProposalDetailPage.tsx
@@ -29,7 +29,7 @@ const RenderProposalAction = ({ daoProposalSelected }: { daoProposalSelected: IE
const [isCastingVote, setIsCastingVote] = useState(false)
const openNotification = useNotification()
const theme = useTheme()
- const isMobileSmall = useMediaQuery(theme.breakpoints.down("sm"))
+ const isMobileSmall = useMediaQuery(theme.breakpoints.down("lg"))
const { castVote, queueForExecution, executeProposal } = useEvmProposalOps()
const [selectedOffchainVotes, setSelectedOffchainVotes] = useState
([])
diff --git a/src/modules/etherlink/explorer/EtherlinkDAO/EvmRegistryPage.tsx b/src/modules/etherlink/explorer/EtherlinkDAO/EvmRegistryPage.tsx
index f68d01f9e..9251c425a 100644
--- a/src/modules/etherlink/explorer/EtherlinkDAO/EvmRegistryPage.tsx
+++ b/src/modules/etherlink/explorer/EtherlinkDAO/EvmRegistryPage.tsx
@@ -12,7 +12,7 @@ import { useEvmProposalOps } from "services/contracts/etherlinkDAO/hooks/useEvmP
import { useHistory } from "react-router-dom"
import { EvmRegistryTable } from "modules/etherlink/components/EvmRegistryTable"
import { SearchInput } from "modules/explorer/pages/DAOList/components/Searchbar"
-import { styled } from "@material-ui/core"
+import { styled } from "@mui/material"
import { useRegistry } from "services/wagmi/etherlink/hooks/useRegistry"
const ShellHeroContainer = styled(ContentContainer)({
@@ -25,7 +25,7 @@ const ShellHeroContainer = styled(ContentContainer)({
export const EvmRegistryPage: React.FC = () => {
const theme = useTheme()
- const isMobileSmall = useMediaQuery(theme.breakpoints.down("xs"))
+ const isMobileSmall = useMediaQuery(theme.breakpoints.down("md"))
const daoId = useEtherlinkDAOID()
const { daoSelected, provider, network } = useContext(EtherlinkContext)
const shouldDisable = useIsProposalButtonDisabled(daoId)
diff --git a/src/modules/etherlink/explorer/EtherlinkDAO/EvmUserPage.tsx b/src/modules/etherlink/explorer/EtherlinkDAO/EvmUserPage.tsx
index 2c90aab76..12717004f 100644
--- a/src/modules/etherlink/explorer/EtherlinkDAO/EvmUserPage.tsx
+++ b/src/modules/etherlink/explorer/EtherlinkDAO/EvmUserPage.tsx
@@ -3,7 +3,7 @@ import BigNumber from "bignumber.js"
import { ethers } from "ethers"
import { Box, Grid, Typography, styled, IconButton } from "components/ui"
import { Button } from "components/ui/Button"
-import { HowToVote } from "@material-ui/icons"
+import { HowToVote } from "@mui/icons-material"
import HandshakeIcon from "@mui/icons-material/Handshake"
import { EtherlinkContext } from "services/wagmi/context"
import { useEvmDaoOps } from "services/contracts/etherlinkDAO/hooks/useEvmDaoOps"
@@ -57,10 +57,10 @@ const StatsGrid = styled(Grid)(({ theme }) => ({
display: "grid",
gridTemplateColumns: "repeat(4, 1fr)",
gap: "16px",
- [theme.breakpoints.down("md")]: {
+ [theme.breakpoints.down("xl")]: {
gridTemplateColumns: "repeat(2, 1fr)"
},
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
gridTemplateColumns: "1fr"
}
}))
diff --git a/src/modules/etherlink/explorer/EtherlinkDAO/components/ProposalDataSection.tsx b/src/modules/etherlink/explorer/EtherlinkDAO/components/ProposalDataSection.tsx
index fc2fa69a4..2729f54a4 100644
--- a/src/modules/etherlink/explorer/EtherlinkDAO/components/ProposalDataSection.tsx
+++ b/src/modules/etherlink/explorer/EtherlinkDAO/components/ProposalDataSection.tsx
@@ -14,7 +14,7 @@ import {
const StyledContentContainer = styled(ContentContainer)(({ theme }) => ({
gap: 10,
padding: "32px 46px",
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
padding: "18px 25px"
}
}))
diff --git a/src/modules/etherlink/explorer/EvmProposals/EvmChoiceItemSelected.tsx b/src/modules/etherlink/explorer/EvmProposals/EvmChoiceItemSelected.tsx
index 28dbe19d9..4d727cb23 100644
--- a/src/modules/etherlink/explorer/EvmProposals/EvmChoiceItemSelected.tsx
+++ b/src/modules/etherlink/explorer/EvmProposals/EvmChoiceItemSelected.tsx
@@ -29,7 +29,7 @@ export const EvmChoiceItemSelected: React.FC<{
multiple: boolean
}> = ({ choice, setSelectedVotes, votes, multiple }) => {
const theme = useTheme()
- const isMobileSmall = useMediaQuery(theme.breakpoints.down("sm"))
+ const isMobileSmall = useMediaQuery(theme.breakpoints.down("lg"))
const handleVotes = (choice: IEvmOffchainChoice) => {
if (multiple) {
diff --git a/src/modules/etherlink/explorer/EvmProposals/EvmOffchainDebate.tsx b/src/modules/etherlink/explorer/EvmProposals/EvmOffchainDebate.tsx
index 934238bc7..1e4b2366f 100644
--- a/src/modules/etherlink/explorer/EvmProposals/EvmOffchainDebate.tsx
+++ b/src/modules/etherlink/explorer/EvmProposals/EvmOffchainDebate.tsx
@@ -78,7 +78,6 @@ export const EvmOffchainDebate: React.FC = () => {
-
@@ -107,6 +106,7 @@ export const EvmOffchainDebate: React.FC = () => {
removeChoice(index)}
style={{ padding: 4, color: theme.palette.error.main }}
+ size="large"
>
diff --git a/src/modules/etherlink/explorer/EvmProposals/EvmPropDaoConfig.tsx b/src/modules/etherlink/explorer/EvmProposals/EvmPropDaoConfig.tsx
index f01e3914d..9c2afae13 100644
--- a/src/modules/etherlink/explorer/EvmProposals/EvmPropDaoConfig.tsx
+++ b/src/modules/etherlink/explorer/EvmProposals/EvmPropDaoConfig.tsx
@@ -5,7 +5,7 @@ import {
HowToVote as HowToVoteIcon,
Schedule as ScheduleIcon,
AccountBalance as AccountBalanceIcon
-} from "@material-ui/icons"
+} from "@mui/icons-material"
import { useEvmProposalOps } from "services/contracts/etherlinkDAO/hooks/useEvmProposalOps"
import { StyledSliderWithValue } from "components/ui/StyledSlider"
import { EtherlinkContext } from "services/wagmi/context"
diff --git a/src/modules/etherlink/explorer/EvmProposals/EvmPropTransferAssets.tsx b/src/modules/etherlink/explorer/EvmProposals/EvmPropTransferAssets.tsx
index 5395266c5..a4f420409 100644
--- a/src/modules/etherlink/explorer/EvmProposals/EvmPropTransferAssets.tsx
+++ b/src/modules/etherlink/explorer/EvmProposals/EvmPropTransferAssets.tsx
@@ -1,6 +1,6 @@
import React, { useCallback, useContext } from "react"
import { Grid, styled, MenuItem, IconButton, FormField, FormTextField, FormSelect, Typography } from "components/ui"
-import { RemoveCircleOutline } from "@material-ui/icons"
+import { RemoveCircleOutline } from "@mui/icons-material"
import { useEvmProposalOps } from "services/contracts/etherlinkDAO/hooks/useEvmProposalOps"
import { EtherlinkContext } from "services/wagmi/context"
import { dbg } from "utils/debug"
diff --git a/src/modules/etherlink/explorer/EvmProposalsActionDialog.tsx b/src/modules/etherlink/explorer/EvmProposalsActionDialog.tsx
index a339ecfcf..a9e8f3a87 100644
--- a/src/modules/etherlink/explorer/EvmProposalsActionDialog.tsx
+++ b/src/modules/etherlink/explorer/EvmProposalsActionDialog.tsx
@@ -52,7 +52,7 @@ export const EvmProposalsActionDialog = ({ open, handleClose }: { open: boolean;
const { daoDelegate, userVotingWeight, loggedInUser, refreshTokenStats } = useEvmDaoOps()
const { daoSelected } = useContext(EtherlinkContext)
const [isDelegating, setIsDelegating] = React.useState(false)
- const isMobileSmall = useMediaQuery(theme.breakpoints.down("sm"))
+ const isMobileSmall = useMediaQuery(theme.breakpoints.down("lg"))
const offchainEnabled = isFeatureEnabled("etherlink-offchain-debate")
// Check if this is a wrapped token DAO
diff --git a/src/modules/etherlink/explorer/index.tsx b/src/modules/etherlink/explorer/index.tsx
index d50388625..0465fa9f9 100644
--- a/src/modules/etherlink/explorer/index.tsx
+++ b/src/modules/etherlink/explorer/index.tsx
@@ -20,7 +20,7 @@ export const EtherlinkDAOOverview: React.FC = () => {
const { daoSelected } = useContext(EtherlinkContext)
const theme = useTheme()
- const isExtraSmall = useMediaQuery(theme.breakpoints.down("xs"))
+ const isExtraSmall = useMediaQuery(theme.breakpoints.down("md"))
const { setMetadataFieldValue, setCurrentStep } = useEvmProposalOps()
const history = useHistory()
diff --git a/src/modules/etherlink/layout.tsx b/src/modules/etherlink/layout.tsx
index 7ef797c8c..9b5669fdf 100644
--- a/src/modules/etherlink/layout.tsx
+++ b/src/modules/etherlink/layout.tsx
@@ -35,7 +35,7 @@ export const EvmDaoCreatorLayout: React.FC = ({ children }) => {
const { currentStep: step, next, prev: back } = useEvmDaoCreateStore()
const history = useHistory()
const theme = useTheme()
- const isMobile = useMediaQuery(theme.breakpoints.down("sm"))
+ const isMobile = useMediaQuery(theme.breakpoints.down("lg"))
const totalSteps = Object.keys(urlToStepMap).length - 1
const progressPercentage = useMemo(() => Math.floor((step / totalSteps) * 100), [step, totalSteps])
diff --git a/src/modules/explorer/components/AllProposalsList.tsx b/src/modules/explorer/components/AllProposalsList.tsx
index 3fb701bd4..a9c318e83 100644
--- a/src/modules/explorer/components/AllProposalsList.tsx
+++ b/src/modules/explorer/components/AllProposalsList.tsx
@@ -1,4 +1,4 @@
-import { Collapse, Grid, styled, Theme, Typography } from "@material-ui/core"
+import { Collapse, Grid, styled, Theme, Typography } from "@mui/material"
import { ProposalItem } from "modules/explorer/pages/User"
import React, { useCallback, useEffect, useState } from "react"
import { Link } from "react-router-dom"
diff --git a/src/modules/explorer/components/AppTabBar.tsx b/src/modules/explorer/components/AppTabBar.tsx
index c086d9216..b355c6986 100644
--- a/src/modules/explorer/components/AppTabBar.tsx
+++ b/src/modules/explorer/components/AppTabBar.tsx
@@ -1,5 +1,5 @@
import React from "react"
-import { AppBar, styled, Tab, Tabs, useMediaQuery, Theme, useTheme } from "@material-ui/core"
+import { AppBar, styled, Tab, Tabs, useMediaQuery, Theme, useTheme } from "@mui/material"
const CustomTab = styled(Tab)(({ theme }) => ({
"flex": 1,
@@ -41,7 +41,7 @@ export const AppTabBar: React.FC<{
}
const theme = useTheme()
- const isMobileSmall = useMediaQuery(theme.breakpoints.down("sm"))
+ const isMobileSmall = useMediaQuery(theme.breakpoints.down("lg"))
return (
({ address: "", amount: 0, shape: {} })
const [endpoint, setEndpoint] = useState(undefined)
const theme = useTheme()
- const isMobileSmall = useMediaQuery(theme.breakpoints.down("sm"))
+ const isMobileSmall = useMediaQuery(theme.breakpoints.down("lg"))
const { mutate: fetchContractData, data } = useArbitraryContractData()
const isAciDeployerDeployed = daoLambdas?.find((lambda: any) => lambda.key === AppConfig.ACI.EXECUTOR_FUNCTION_NAME)
diff --git a/src/modules/explorer/components/BatchBar.tsx b/src/modules/explorer/components/BatchBar.tsx
index 8e830fdc8..b067ac8d8 100644
--- a/src/modules/explorer/components/BatchBar.tsx
+++ b/src/modules/explorer/components/BatchBar.tsx
@@ -1,5 +1,5 @@
import React from "react"
-import { Grid, Paper, styled, Switch, Typography } from "@material-ui/core"
+import { Grid, Paper, styled, Switch, Typography } from "@mui/material"
import { ProposalFormInput } from "./ProposalFormInput"
import AddIcon from "@mui/icons-material/Add"
const BatchBarContainer = styled(Grid)(({ theme }) => ({
@@ -7,7 +7,7 @@ const BatchBarContainer = styled(Grid)(({ theme }) => ({
alignItems: "start",
cursor: "pointer",
overflowX: "auto",
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
padding: "24px 24px"
}
}))
diff --git a/src/modules/explorer/components/ChangeNetworkButton.tsx b/src/modules/explorer/components/ChangeNetworkButton.tsx
index a0ecad99a..0ad7068d6 100644
--- a/src/modules/explorer/components/ChangeNetworkButton.tsx
+++ b/src/modules/explorer/components/ChangeNetworkButton.tsx
@@ -1,5 +1,5 @@
import React from "react"
-import { Box, Grid, styled, Typography, Theme, useTheme, useMediaQuery } from "@material-ui/core"
+import { Box, Grid, styled, Typography, Theme, useTheme, useMediaQuery } from "@mui/material"
import { useTezos } from "services/beacon/hooks/useTezos"
import { ActionSheet, useActionSheet } from "../context/ActionSheets"
import { useLocation } from "react-router-dom"
@@ -32,18 +32,20 @@ const StyledConnectedButton = styled(Box)(({ theme }: { theme: Theme }) => ({
}
}))
-export const ColorDot = styled(Box)({
- height: 6,
- width: 6,
- backgroundColor: ({ color }: { color: string }) => color,
- borderRadius: "50%"
-})
+export const ColorDot = styled(Box, { shouldForwardProp: prop => prop !== "color" })(
+ ({ color }: { color: string }) => ({
+ height: 6,
+ width: 6,
+ backgroundColor: color,
+ borderRadius: "50%"
+ })
+)
export const ChangeNetworkButton = () => {
const { network } = useTezos()
const { open } = useActionSheet(ActionSheet.Network)
const theme = useTheme()
- const isMobileSmall = useMediaQuery(theme.breakpoints.down("xs"))
+ const isMobileSmall = useMediaQuery(theme.breakpoints.down("md"))
const location = useLocation()
diff --git a/src/modules/explorer/components/CodeCollapse.tsx b/src/modules/explorer/components/CodeCollapse.tsx
index b5a8b7934..f510aa470 100644
--- a/src/modules/explorer/components/CodeCollapse.tsx
+++ b/src/modules/explorer/components/CodeCollapse.tsx
@@ -1,8 +1,8 @@
import React, { useState } from "react"
-import { Collapse, Grid, IconButton, Typography } from "@material-ui/core"
+import { Collapse, Grid, IconButton, Typography } from "@mui/material"
-import KeyboardArrowDownIcon from "@material-ui/icons/KeyboardArrowDown"
-import KeyboardArrowUpIcon from "@material-ui/icons/KeyboardArrowUp"
+import KeyboardArrowDownIcon from "@mui/icons-material/KeyboardArrowDown"
+import KeyboardArrowUpIcon from "@mui/icons-material/KeyboardArrowUp"
import { ProposalCodeEditorInput } from "./ProposalFormInput"
import Prism, { highlight } from "prismjs"
import { TableContainer, TableHeader } from "components/ui/Table"
diff --git a/src/modules/explorer/components/ConfigProposalForm.tsx b/src/modules/explorer/components/ConfigProposalForm.tsx
index 109651efe..d37bdf39e 100644
--- a/src/modules/explorer/components/ConfigProposalForm.tsx
+++ b/src/modules/explorer/components/ConfigProposalForm.tsx
@@ -1,4 +1,4 @@
-import { Grid, Typography, TextField, styled } from "@material-ui/core"
+import { Grid, Typography, TextField, styled } from "@mui/material"
import React, { useCallback } from "react"
import { useDAO } from "services/services/dao/hooks/useDAO"
import { SendButton } from "./ProposalFormSendButton"
diff --git a/src/modules/explorer/components/ConfigProposalFormLambda.tsx b/src/modules/explorer/components/ConfigProposalFormLambda.tsx
index 0ffd1d339..cdd417b1c 100644
--- a/src/modules/explorer/components/ConfigProposalFormLambda.tsx
+++ b/src/modules/explorer/components/ConfigProposalFormLambda.tsx
@@ -1,4 +1,4 @@
-import { Grid, CircularProgress, Typography } from "@material-ui/core"
+import { Grid, CircularProgress, Typography } from "@mui/material"
import React, { useCallback, useEffect, useMemo, useState } from "react"
import { useDAO } from "services/services/dao/hooks/useDAO"
import { FormProvider, useForm } from "react-hook-form"
diff --git a/src/modules/explorer/components/ContentContainer.tsx b/src/modules/explorer/components/ContentContainer.tsx
index 37d192282..b9e147de5 100644
--- a/src/modules/explorer/components/ContentContainer.tsx
+++ b/src/modules/explorer/components/ContentContainer.tsx
@@ -1,5 +1,5 @@
// TODO: Replace usage with components/ui/ContentContainer
-import { styled, Grid } from "@material-ui/core"
+import { styled, Grid } from "@mui/material"
export const ContentContainer = styled(Grid)(({ theme }) => ({
borderRadius: 8,
diff --git a/src/modules/explorer/components/CopyButton.tsx b/src/modules/explorer/components/CopyButton.tsx
index bc8276566..4e4ca4c64 100644
--- a/src/modules/explorer/components/CopyButton.tsx
+++ b/src/modules/explorer/components/CopyButton.tsx
@@ -1,5 +1,5 @@
import React, { useState } from "react"
-import { Box, Tooltip, styled } from "@material-ui/core"
+import { Box, Tooltip, styled } from "@mui/material"
import { ReactComponent as CopyIcon } from "assets/img/copy_icon.svg"
const TooltipButton = styled(Tooltip)({
diff --git a/src/modules/explorer/components/Countdown.tsx b/src/modules/explorer/components/Countdown.tsx
index 859e95c6c..02bae13c3 100644
--- a/src/modules/explorer/components/Countdown.tsx
+++ b/src/modules/explorer/components/Countdown.tsx
@@ -1,5 +1,5 @@
import React, { useEffect, useState } from "react"
-import { Grid, Typography } from "@material-ui/core"
+import { Grid, Typography } from "@mui/material"
import { CycleInfo } from "services/contracts/baseDAO"
export const Countdown: React.FC<{ cycleInfo: CycleInfo }> = ({ cycleInfo }) => {
diff --git a/src/modules/explorer/components/CycleDescription.tsx b/src/modules/explorer/components/CycleDescription.tsx
index 1df7c9c3c..08a08c715 100644
--- a/src/modules/explorer/components/CycleDescription.tsx
+++ b/src/modules/explorer/components/CycleDescription.tsx
@@ -1,4 +1,4 @@
-import { Typography, useMediaQuery, useTheme, Theme, styled } from "@material-ui/core"
+import { Typography, useMediaQuery, useTheme, Theme, styled } from "@mui/material"
import React from "react"
import { useDAO } from "services/services/dao/hooks/useDAO"
diff --git a/src/modules/explorer/components/DAOStatsRow.tsx b/src/modules/explorer/components/DAOStatsRow.tsx
index e692e1443..2f320398c 100644
--- a/src/modules/explorer/components/DAOStatsRow.tsx
+++ b/src/modules/explorer/components/DAOStatsRow.tsx
@@ -1,5 +1,5 @@
import React, { useContext, useMemo } from "react"
-import { Box, Grid, styled, Typography, Paper } from "@material-ui/core"
+import { Box, Grid, styled, Typography, Paper } from "@mui/material"
import { useDAO } from "services/services/dao/hooks/useDAO"
import { useProposals } from "services/services/dao/hooks/useProposals"
import BigNumber from "bignumber.js"
@@ -31,7 +31,7 @@ const ItemContent = styled(Grid)({
const ItemTitle = styled(Typography)(({ theme }) => ({
fontSize: 18,
fontWeight: 500,
- [theme.breakpoints.down("md")]: {
+ [theme.breakpoints.down("xl")]: {
fontSize: 15
}
}))
@@ -41,7 +41,7 @@ const ItemValue = styled(Typography)(({ theme }) => ({
fontWeight: 300,
overflowX: "scroll",
cursor: "default",
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
fontSize: 28
}
}))
diff --git a/src/modules/explorer/components/DelegationChangeProposalForm.tsx b/src/modules/explorer/components/DelegationChangeProposalForm.tsx
index c1ec5425f..cf46a1612 100644
--- a/src/modules/explorer/components/DelegationChangeProposalForm.tsx
+++ b/src/modules/explorer/components/DelegationChangeProposalForm.tsx
@@ -1,4 +1,4 @@
-import { Grid, styled, Typography, TextField } from "@material-ui/core"
+import { Grid, styled, Typography, TextField } from "@mui/material"
import React, { useCallback, useEffect, useMemo } from "react"
import { useDAO } from "services/services/dao/hooks/useDAO"
import { SendButton } from "./ProposalFormSendButton"
diff --git a/src/modules/explorer/components/Dropdown.tsx b/src/modules/explorer/components/Dropdown.tsx
index e40b7cd57..01c6a11e6 100644
--- a/src/modules/explorer/components/Dropdown.tsx
+++ b/src/modules/explorer/components/Dropdown.tsx
@@ -1,6 +1,7 @@
import React, { useEffect, useState } from "react"
-import { Select, SelectProps, MenuItem, makeStyles, Theme } from "@material-ui/core"
-interface DropdownProps extends SelectProps {
+import { Select, SelectProps, MenuItem, Theme } from "@mui/material"
+import makeStyles from "@mui/styles/makeStyles"
+type DropdownProps = SelectProps & {
options: { name: string; value: string | undefined }[]
value?: string | undefined
onSelected?: (item: string | undefined) => void
@@ -16,7 +17,7 @@ const useStyles = makeStyles((theme: Theme) => ({
transform: "none"
},
selectSelect: {
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
fontSize: 16
},
paddingLeft: 10,
diff --git a/src/modules/explorer/components/EstimatedTime.tsx b/src/modules/explorer/components/EstimatedTime.tsx
index bd0e8b5a0..67760fc46 100644
--- a/src/modules/explorer/components/EstimatedTime.tsx
+++ b/src/modules/explorer/components/EstimatedTime.tsx
@@ -1,4 +1,4 @@
-import { Grid, Typography } from "@material-ui/core"
+import { Grid, Typography } from "@mui/material"
import React from "react"
interface Props {
diff --git a/src/modules/explorer/components/EthChangeConfigProposalForm.tsx b/src/modules/explorer/components/EthChangeConfigProposalForm.tsx
index 62b0f597d..b4a1a1e3a 100644
--- a/src/modules/explorer/components/EthChangeConfigProposalForm.tsx
+++ b/src/modules/explorer/components/EthChangeConfigProposalForm.tsx
@@ -1,6 +1,6 @@
import React, { useState } from "react"
import { ResponsiveDialog } from "./ResponsiveDialog"
-import { Grid, TextField, Typography, MenuItem, useMediaQuery, useTheme } from "@material-ui/core"
+import { Grid, TextField, Typography, MenuItem, useMediaQuery, useTheme } from "@mui/material"
import { SendButton } from "./ProposalFormSendButton"
import Select, { SelectChangeEvent } from "@mui/material/Select"
@@ -15,7 +15,7 @@ const EthChangeConfigProposalForm: React.FC = ({ open,
const [offChainResources, setOffChainResources] = useState("")
const theme = useTheme()
- const isMobileSmall = useMediaQuery(theme.breakpoints.down("sm"))
+ const isMobileSmall = useMediaQuery(theme.breakpoints.down("lg"))
return (
= ({ open, handle
const [title, setTitle] = useState("")
const [offChainResources, setOffChainResources] = useState("")
const theme = useTheme()
- const isMobileSmall = useMediaQuery(theme.breakpoints.down("sm"))
+ const isMobileSmall = useMediaQuery(theme.breakpoints.down("lg"))
return (
({
marginTop: 6,
gap: 24,
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
marginTop: 30
}
}))
diff --git a/src/modules/explorer/components/FiltersDialog.tsx b/src/modules/explorer/components/FiltersDialog.tsx
index eae212a85..7c5978935 100644
--- a/src/modules/explorer/components/FiltersDialog.tsx
+++ b/src/modules/explorer/components/FiltersDialog.tsx
@@ -1,6 +1,6 @@
import React, { useEffect, useState } from "react"
import { ResponsiveDialog } from "./ResponsiveDialog"
-import { Grid, styled } from "@material-ui/core"
+import { Grid, styled } from "@mui/material"
import { Typography } from "@mui/material"
import { ProposalStatus } from "services/services/dao/mappers/proposal/types"
import { SmallButton } from "modules/common/SmallButton"
diff --git a/src/modules/explorer/components/FiltersTokensDialog.tsx b/src/modules/explorer/components/FiltersTokensDialog.tsx
index 18d04c8e6..4955d945e 100644
--- a/src/modules/explorer/components/FiltersTokensDialog.tsx
+++ b/src/modules/explorer/components/FiltersTokensDialog.tsx
@@ -1,5 +1,6 @@
import React, { useEffect, useState } from "react"
-import { Grid, TextField, Typography, styled, withStyles } from "@material-ui/core"
+import { Grid, TextField, Typography, styled } from "@mui/material"
+import withStyles from "@mui/styles/withStyles"
import { ResponsiveDialog } from "./ResponsiveDialog"
import { SmallButton } from "modules/common/SmallButton"
import { TokensFilters } from "../pages/Treasury"
@@ -19,7 +20,7 @@ const SectionTitle = styled(Typography)({
const Container = styled(Grid)(({ theme }) => ({
marginTop: 6,
gap: 24,
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
marginTop: 30
}
}))
diff --git a/src/modules/explorer/components/FiltersTransactionsDialog.tsx b/src/modules/explorer/components/FiltersTransactionsDialog.tsx
index a4c288764..c0a3d4c3f 100644
--- a/src/modules/explorer/components/FiltersTransactionsDialog.tsx
+++ b/src/modules/explorer/components/FiltersTransactionsDialog.tsx
@@ -1,5 +1,6 @@
import React, { useEffect, useState } from "react"
-import { Grid, TextField, Typography, styled, withStyles } from "@material-ui/core"
+import { Grid, TextField, Typography, styled } from "@mui/material"
+import withStyles from "@mui/styles/withStyles"
import { ResponsiveDialog } from "./ResponsiveDialog"
import { SmallButton } from "modules/common/SmallButton"
import { TransactionsFilters } from "../pages/Treasury"
@@ -25,7 +26,7 @@ const SectionTitle = styled(Typography)({
const Container = styled(Grid)(({ theme }) => ({
marginTop: 6,
gap: 24,
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
marginTop: 30
}
}))
diff --git a/src/modules/explorer/components/FiltersUserDialog.tsx b/src/modules/explorer/components/FiltersUserDialog.tsx
index b88ba30a8..88bc7b09c 100644
--- a/src/modules/explorer/components/FiltersUserDialog.tsx
+++ b/src/modules/explorer/components/FiltersUserDialog.tsx
@@ -1,6 +1,6 @@
import React, { useEffect, useState } from "react"
import { ResponsiveDialog } from "./ResponsiveDialog"
-import { Grid, styled } from "@material-ui/core"
+import { Grid, styled } from "@mui/material"
import { Typography } from "@mui/material"
import { Dropdown } from "./Dropdown"
import { ProposalStatus } from "services/services/dao/mappers/proposal/types"
diff --git a/src/modules/explorer/components/FreezeDialog.tsx b/src/modules/explorer/components/FreezeDialog.tsx
index 3bf6fb8dd..ba9f69a92 100644
--- a/src/modules/explorer/components/FreezeDialog.tsx
+++ b/src/modules/explorer/components/FreezeDialog.tsx
@@ -1,5 +1,5 @@
import React, { useCallback, useMemo } from "react"
-import { Grid, styled, Typography, TextField, InputAdornment, Button } from "@material-ui/core"
+import { Grid, styled, Typography, TextField, InputAdornment, Button } from "@mui/material"
import { useFreeze } from "services/contracts/baseDAO/hooks/useFreeze"
import BigNumber from "bignumber.js"
import { useDAO } from "services/services/dao/hooks/useDAO"
diff --git a/src/modules/explorer/components/GuardianChangeProposalForm.tsx b/src/modules/explorer/components/GuardianChangeProposalForm.tsx
index 41fc869be..f595d31f7 100644
--- a/src/modules/explorer/components/GuardianChangeProposalForm.tsx
+++ b/src/modules/explorer/components/GuardianChangeProposalForm.tsx
@@ -1,4 +1,4 @@
-import { Grid, styled, Typography, TextField } from "@material-ui/core"
+import { Grid, styled, Typography, TextField } from "@mui/material"
import React, { useCallback, useEffect, useMemo } from "react"
import { useDAO } from "services/services/dao/hooks/useDAO"
import { SendButton } from "./ProposalFormSendButton"
diff --git a/src/modules/explorer/components/Hero.tsx b/src/modules/explorer/components/Hero.tsx
index a38556103..f110dde9d 100644
--- a/src/modules/explorer/components/Hero.tsx
+++ b/src/modules/explorer/components/Hero.tsx
@@ -1,5 +1,5 @@
import React from "react"
-import { Grid, GridProps, styled } from "@material-ui/core"
+import { Grid, GridProps, styled } from "@mui/material"
import { ContentContainer } from "components/ui/Table"
const Container = styled(ContentContainer)({
diff --git a/src/modules/explorer/components/HeroTitle.tsx b/src/modules/explorer/components/HeroTitle.tsx
index 408c334ea..c6ec4ab56 100644
--- a/src/modules/explorer/components/HeroTitle.tsx
+++ b/src/modules/explorer/components/HeroTitle.tsx
@@ -1,4 +1,4 @@
-import { styled, Typography } from "@material-ui/core"
+import { styled, Typography } from "@mui/material"
export const HeroTitle = styled(Typography)(({ theme }) => ({
color: theme.palette.text.primary,
diff --git a/src/modules/explorer/components/ItemDialog.tsx b/src/modules/explorer/components/ItemDialog.tsx
index 940a06b5a..3a4cb9ccd 100644
--- a/src/modules/explorer/components/ItemDialog.tsx
+++ b/src/modules/explorer/components/ItemDialog.tsx
@@ -1,4 +1,4 @@
-import { TextField } from "@material-ui/core"
+import { TextField } from "@mui/material"
import React from "react"
import { ResponsiveDialog } from "./ResponsiveDialog"
import { ProposalFormInput } from "./ProposalFormInput"
diff --git a/src/modules/explorer/components/NFT.tsx b/src/modules/explorer/components/NFT.tsx
index bf419b807..2b064328a 100644
--- a/src/modules/explorer/components/NFT.tsx
+++ b/src/modules/explorer/components/NFT.tsx
@@ -1,4 +1,4 @@
-import { Grid, Link, styled, Typography } from "@material-ui/core"
+import { Grid, Link, styled, Typography } from "@mui/material"
import React from "react"
import { IPFS_GATEWAY_URI } from "services/ipfs"
import { NFTMediaType } from "../../../models/Token"
diff --git a/src/modules/explorer/components/NFTDialog.tsx b/src/modules/explorer/components/NFTDialog.tsx
index 362cbeb50..58b624ec6 100644
--- a/src/modules/explorer/components/NFTDialog.tsx
+++ b/src/modules/explorer/components/NFTDialog.tsx
@@ -1,4 +1,4 @@
-import { Button, Grid, styled, Theme, Tooltip, Typography } from "@material-ui/core"
+import { Button, Grid, styled, Theme, Tooltip, Typography } from "@mui/material"
import hexToRgba from "hex-to-rgba"
import React, { useState } from "react"
import { NFT } from "./NFT"
diff --git a/src/modules/explorer/components/NFTTransfer.tsx b/src/modules/explorer/components/NFTTransfer.tsx
index 91950183f..410557f7e 100644
--- a/src/modules/explorer/components/NFTTransfer.tsx
+++ b/src/modules/explorer/components/NFTTransfer.tsx
@@ -1,9 +1,9 @@
import React, { useState, useMemo } from "react"
-import { Grid, styled, Paper, DialogContent, TextField } from "@material-ui/core"
+import { Grid, styled, Paper, DialogContent, TextField } from "@mui/material"
import { useDAONFTHoldings } from "services/contracts/baseDAO/hooks/useDAOHoldings"
import { ErrorText } from "modules/explorer/components/styled/ErrorText"
import * as Yup from "yup"
-import { Autocomplete } from "@material-ui/lab"
+import { Autocomplete } from "@mui/material"
import { Controller, useFieldArray, useFormContext } from "react-hook-form"
import { NFT } from "modules/explorer/components/NFT"
diff --git a/src/modules/explorer/components/NavigationMenu.tsx b/src/modules/explorer/components/NavigationMenu.tsx
index 0cde62a99..68c5b95cf 100644
--- a/src/modules/explorer/components/NavigationMenu.tsx
+++ b/src/modules/explorer/components/NavigationMenu.tsx
@@ -1,14 +1,6 @@
-import {
- Grid,
- styled,
- Theme,
- Typography,
- useMediaQuery,
- useTheme,
- alpha,
- withStyles,
- makeStyles
-} from "@material-ui/core"
+import { Grid, styled, Theme, Typography, useMediaQuery, useTheme, alpha } from "@mui/material"
+import withStyles from "@mui/styles/withStyles"
+import makeStyles from "@mui/styles/makeStyles"
import { ReactComponent as HouseIcon } from "assets/logos/home.svg"
import { ReactComponent as VotingIcon } from "assets/logos/voting.svg"
import { ReactComponent as TreasuryIcon } from "assets/logos/treasury.svg"
@@ -79,7 +71,7 @@ const PageItemMobile = styled(({ isSelected, ...other }: any) => a > * > * > *": {
transition: ".15s ease-out"
},
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
width: "45px"
}
})
@@ -116,7 +108,7 @@ const PageItem = styled(({ isSelected, ...other }: any) => )(
"& > a > * > * > *": {
transition: ".15s ease-out"
},
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
width: "45px"
}
})
diff --git a/src/modules/explorer/components/NetworkSheet.tsx b/src/modules/explorer/components/NetworkSheet.tsx
index ba3c9de51..b94b4aa85 100644
--- a/src/modules/explorer/components/NetworkSheet.tsx
+++ b/src/modules/explorer/components/NetworkSheet.tsx
@@ -1,4 +1,4 @@
-import { styled, Grid, Typography, Tooltip, GridProps } from "@material-ui/core"
+import { styled, Grid, Typography, Tooltip, GridProps } from "@mui/material"
import React, { useContext, useMemo } from "react"
import { useTezos } from "services/beacon/hooks/useTezos"
import { Network, getNetworkDisplayName, networkDotColorMap, rpcNodes } from "services/beacon"
diff --git a/src/modules/explorer/components/NewTreasuryProposalDialog.tsx b/src/modules/explorer/components/NewTreasuryProposalDialog.tsx
index c78f82e02..4fc52cf9d 100644
--- a/src/modules/explorer/components/NewTreasuryProposalDialog.tsx
+++ b/src/modules/explorer/components/NewTreasuryProposalDialog.tsx
@@ -9,13 +9,13 @@ import {
InputAdornment,
useTheme,
useMediaQuery
-} from "@material-ui/core"
+} from "@mui/material"
import { useDAO } from "services/services/dao/hooks/useDAO"
import { useDAOHoldings } from "services/contracts/baseDAO/hooks/useDAOHoldings"
import { ErrorText } from "modules/explorer/components/styled/ErrorText"
import * as Yup from "yup"
import BigNumber from "bignumber.js"
-import { Autocomplete } from "@material-ui/lab"
+import { Autocomplete } from "@mui/material"
import { Controller, useFieldArray, useFormContext } from "react-hook-form"
import { useTezosBalance } from "services/contracts/baseDAO/hooks/useTezosBalance"
@@ -50,7 +50,7 @@ const AutoCompletePaper = styled(Paper)({
})
const AmountContainer = styled(Grid)(({ theme }) => ({
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
paddingRight: 0
}
}))
@@ -145,7 +145,7 @@ export const NewTreasuryProposalDialog: React.FC<{ open: boolean }> = ({ open })
const [isBatch, setIsBatch] = useState(values.transferForm.isBatch)
const theme = useTheme()
- const isMobileSmall = useMediaQuery(theme.breakpoints.down("sm"))
+ const isMobileSmall = useMediaQuery(theme.breakpoints.down("lg"))
const [activeTransfer, setActiveTransfer] = React.useState(1)
const daoId = useDAOID()
const { data: daoData, ledger } = useDAO(daoId)
diff --git a/src/modules/explorer/components/NotFound.tsx b/src/modules/explorer/components/NotFound.tsx
index 407c8fb18..f667d7bd3 100644
--- a/src/modules/explorer/components/NotFound.tsx
+++ b/src/modules/explorer/components/NotFound.tsx
@@ -1,4 +1,4 @@
-import { Box, Typography } from "@material-ui/core"
+import { Box, Typography } from "@mui/material"
import React from "react"
export const NotFound: React.FC = () => {
diff --git a/src/modules/explorer/components/NotIndexed.tsx b/src/modules/explorer/components/NotIndexed.tsx
index a9f0957f1..0c743e010 100644
--- a/src/modules/explorer/components/NotIndexed.tsx
+++ b/src/modules/explorer/components/NotIndexed.tsx
@@ -1,4 +1,4 @@
-import { Box, styled, Theme, Typography } from "@material-ui/core"
+import { Box, styled, Theme, Typography } from "@mui/material"
import React from "react"
const SecondaryText = styled("span")(({ theme }: { theme: Theme }) => ({
diff --git a/src/modules/explorer/components/ProgressBar.tsx b/src/modules/explorer/components/ProgressBar.tsx
index 6eb270d0a..e4d797dc0 100644
--- a/src/modules/explorer/components/ProgressBar.tsx
+++ b/src/modules/explorer/components/ProgressBar.tsx
@@ -1,6 +1,8 @@
-import { styled, LinearProgress, Theme } from "@material-ui/core"
+import { styled, LinearProgress } from "@mui/material"
-export const ProgressBar = styled(LinearProgress)(({ theme, favor }: { theme: Theme; favor: boolean }) => ({
+export const ProgressBar = styled(LinearProgress, { shouldForwardProp: prop => prop !== "favor" })<{
+ favor: boolean
+}>(({ theme, favor }) => ({
"marginTop": 10,
"height": 8,
"&.MuiLinearProgress-colorSecondary, &.MuiLinearProgress-colorPrimary": {
@@ -12,7 +14,7 @@ export const ProgressBar = styled(LinearProgress)(({ theme, favor }: { theme: Th
}
}))
-export const MultiColorBar = styled(LinearProgress)(({ theme }: { theme: Theme }) => ({
+export const MultiColorBar = styled(LinearProgress)(({ theme }) => ({
"marginTop": 10,
"&.MuiLinearProgress-colorSecondary, &.MuiLinearProgress-colorPrimary": {
"background": theme.palette.error.main,
diff --git a/src/modules/explorer/components/ProposalActionsDialog.tsx b/src/modules/explorer/components/ProposalActionsDialog.tsx
index 51e38c7e2..d81893fe8 100644
--- a/src/modules/explorer/components/ProposalActionsDialog.tsx
+++ b/src/modules/explorer/components/ProposalActionsDialog.tsx
@@ -1,4 +1,4 @@
-import { Grid, styled, Typography, useMediaQuery, useTheme } from "@material-ui/core"
+import { Grid, styled, Typography, useMediaQuery, useTheme } from "@mui/material"
import { RegistryProposalFormValues } from "modules/explorer/components/UpdateRegistryDialog"
import { TreasuryProposalFormValues } from "modules/explorer/components/NewTreasuryProposalDialog"
import React, { useCallback, useEffect, useState } from "react"
@@ -152,7 +152,7 @@ const ProposalActionsDialogForTezos: React.FC<{
const daoId = useDAOID()
const { data } = useDAO(daoId)
const theme = useTheme()
- const isMobileSmall = useMediaQuery(theme.breakpoints.down("sm"))
+ const isMobileSmall = useMediaQuery(theme.breakpoints.down("lg"))
const { clearParams } = useQueryParams()
const [proposalAction, setProposalAction] = useState(ProposalAction.none)
diff --git a/src/modules/explorer/components/ProposalForm.tsx b/src/modules/explorer/components/ProposalForm.tsx
index b4f4e32e0..12691f1dd 100644
--- a/src/modules/explorer/components/ProposalForm.tsx
+++ b/src/modules/explorer/components/ProposalForm.tsx
@@ -1,4 +1,4 @@
-import { Grid, styled, Typography, TextField } from "@material-ui/core"
+import { Grid, styled, Typography, TextField } from "@mui/material"
import {
registryProposalFormInitialState,
RegistryProposalFormValues,
diff --git a/src/modules/explorer/components/ProposalFormInput.tsx b/src/modules/explorer/components/ProposalFormInput.tsx
index fd43d95d4..0b7e3656c 100644
--- a/src/modules/explorer/components/ProposalFormInput.tsx
+++ b/src/modules/explorer/components/ProposalFormInput.tsx
@@ -1,6 +1,6 @@
import React from "react"
import Editor from "react-simple-code-editor"
-import { Grid, styled, Typography } from "@material-ui/core"
+import { Grid, styled, Typography } from "@mui/material"
const StyledBody = styled(Grid)(({ theme }) => ({
"borderRadius": 8,
diff --git a/src/modules/explorer/components/ProposalFormSendButton.tsx b/src/modules/explorer/components/ProposalFormSendButton.tsx
index e174cc3ec..3582f8591 100644
--- a/src/modules/explorer/components/ProposalFormSendButton.tsx
+++ b/src/modules/explorer/components/ProposalFormSendButton.tsx
@@ -1,10 +1,10 @@
import React from "react"
-import { styled, Grid } from "@material-ui/core"
+import { styled, Grid } from "@mui/material"
import { ViewButton, ViewButtonProps } from "./ViewButton"
import { MainButton } from "modules/common/MainButton"
const SendContainer = styled(Grid)(({ theme }) => ({
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
height: 100
}
}))
diff --git a/src/modules/explorer/components/ProposalSelectionMenu.tsx b/src/modules/explorer/components/ProposalSelectionMenu.tsx
index 0050536a6..4d61f696d 100644
--- a/src/modules/explorer/components/ProposalSelectionMenu.tsx
+++ b/src/modules/explorer/components/ProposalSelectionMenu.tsx
@@ -1,4 +1,4 @@
-import { Grid, styled, Button, Typography } from "@material-ui/core"
+import { Grid, styled, Button, Typography } from "@mui/material"
import { RegistryProposalFormValues } from "modules/explorer/components/UpdateRegistryDialog"
import { TreasuryProposalFormValues } from "modules/explorer/components/NewTreasuryProposalDialog"
import React, { useState } from "react"
diff --git a/src/modules/explorer/components/ProposalSelectionMenuLambda.tsx b/src/modules/explorer/components/ProposalSelectionMenuLambda.tsx
index 16e4292c6..c73c15922 100644
--- a/src/modules/explorer/components/ProposalSelectionMenuLambda.tsx
+++ b/src/modules/explorer/components/ProposalSelectionMenuLambda.tsx
@@ -1,5 +1,5 @@
import _ from "lodash"
-import { Grid, styled, Typography } from "@material-ui/core"
+import { Grid, styled, Typography } from "@mui/material"
import { RegistryProposalFormValues } from "modules/explorer/components/UpdateRegistryDialog"
import { TreasuryProposalFormValues } from "modules/explorer/components/NewTreasuryProposalDialog"
import React, { useState } from "react"
diff --git a/src/modules/explorer/components/ProposalTableRow.tsx b/src/modules/explorer/components/ProposalTableRow.tsx
index d059bb240..349c276b9 100644
--- a/src/modules/explorer/components/ProposalTableRow.tsx
+++ b/src/modules/explorer/components/ProposalTableRow.tsx
@@ -1,7 +1,7 @@
import React, { useCallback } from "react"
-import { styled, Grid, Box, Typography, IconButton, useTheme, useMediaQuery } from "@material-ui/core"
+import { styled, Grid, Box, Typography, IconButton, useTheme, useMediaQuery } from "@mui/material"
import dayjs from "dayjs"
-import ArrowForwardIcon from "@material-ui/icons/ArrowForward"
+import ArrowForwardIcon from "@mui/icons-material/ArrowForward"
import { useHistory } from "react-router-dom"
import { RowContainer } from "./tables/RowContainer"
import { TableStatusBadge } from "./ProposalTableRowStatusBadge"
@@ -11,7 +11,7 @@ import {
PauseCircleOutline,
RemoveCircleOutline,
PlayCircleOutlineOutlined
-} from "@material-ui/icons"
+} from "@mui/icons-material"
import { toShortAddress } from "services/contracts/utils"
import { Proposal, ProposalStatus } from "services/services/dao/mappers/proposal/types"
import { useAgoraTopic } from "services/agora/hooks/useTopic"
@@ -24,7 +24,7 @@ export interface ProposalTableRowData {
const ArrowContainer = styled(Grid)(({ theme }) => ({
display: "flex",
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
display: "none"
}
}))
@@ -41,13 +41,13 @@ const StatusText = styled(Typography)({
const RowContent = styled(Box)(({ theme }) => ({
marginTop: 25,
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
marginTop: 15
}
}))
const ArrowInfo = styled(Typography)(({ theme }) => ({
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
marginTop: 15
}
}))
@@ -55,7 +55,7 @@ const ArrowInfo = styled(Typography)(({ theme }) => ({
export const ProposalTableRow: React.FC<{ proposal: Proposal }> = ({ proposal }) => {
const history = useHistory()
const theme = useTheme()
- const isMobileSmall = useMediaQuery(theme.breakpoints.down("sm"))
+ const isMobileSmall = useMediaQuery(theme.breakpoints.down("lg"))
const { cycleInfo } = useDAO(proposal.dao.data.address)
const formattedDate = dayjs(proposal.startDate).format("LLL")
diff --git a/src/modules/explorer/components/ProposalTableRowStatusBadge.tsx b/src/modules/explorer/components/ProposalTableRowStatusBadge.tsx
index 0991dd212..31be0eb71 100644
--- a/src/modules/explorer/components/ProposalTableRowStatusBadge.tsx
+++ b/src/modules/explorer/components/ProposalTableRowStatusBadge.tsx
@@ -1,5 +1,5 @@
import React from "react"
-import { styled, Grid, Theme, Typography, GridProps } from "@material-ui/core"
+import { styled, Grid, Theme, Typography, GridProps } from "@mui/material"
import { ProposalStatus } from "services/services/dao/mappers/proposal/types"
import hexToRgba from "hex-to-rgba"
diff --git a/src/modules/explorer/components/ProposalTransferBadge.tsx b/src/modules/explorer/components/ProposalTransferBadge.tsx
index 03e34f686..4785c55d3 100644
--- a/src/modules/explorer/components/ProposalTransferBadge.tsx
+++ b/src/modules/explorer/components/ProposalTransferBadge.tsx
@@ -1,5 +1,5 @@
-import { Grid, GridProps, styled, Typography } from "@material-ui/core"
-import ArrowForwardIcon from "@material-ui/icons/ArrowForward"
+import { Grid, GridProps, styled, Typography } from "@mui/material"
+import ArrowForwardIcon from "@mui/icons-material/ArrowForward"
import { HighlightedBadge } from "modules/explorer/components/styled/HighlightedBadge"
import { UserBadge } from "modules/explorer/components/UserBadge"
import React from "react"
diff --git a/src/modules/explorer/components/ProposalsFilter.tsx b/src/modules/explorer/components/ProposalsFilter.tsx
index 5064f617d..b3337a50b 100644
--- a/src/modules/explorer/components/ProposalsFilter.tsx
+++ b/src/modules/explorer/components/ProposalsFilter.tsx
@@ -1,6 +1,6 @@
import React, { useState } from "react"
-import { Button, Fade, Grid, styled, Popper, useTheme, useMediaQuery } from "@material-ui/core"
-import { KeyboardArrowDown, KeyboardArrowUp } from "@material-ui/icons"
+import { Button, Fade, Grid, styled, Popper, useTheme, useMediaQuery } from "@mui/material"
+import { KeyboardArrowDown, KeyboardArrowUp } from "@mui/icons-material"
import { StatusBadge } from "./StatusBadge"
import { ProposalStatus } from "services/services/dao/mappers/proposal/types"
@@ -53,7 +53,7 @@ export const ProposalFilter: React.FC<{ filterProposalByStatus: any }> = ({ filt
const [anchorEl, setAnchorEl] = React.useState(null)
const [state, setState] = useState("all")
const theme = useTheme()
- const isMobileSmall = useMediaQuery(theme.breakpoints.down("sm"))
+ const isMobileSmall = useMediaQuery(theme.breakpoints.down("lg"))
const handleClick = (event: React.MouseEvent) => {
setAnchorEl(event.currentTarget)
diff --git a/src/modules/explorer/components/ProposalsList.tsx b/src/modules/explorer/components/ProposalsList.tsx
index 5048e71b6..45abe6a25 100644
--- a/src/modules/explorer/components/ProposalsList.tsx
+++ b/src/modules/explorer/components/ProposalsList.tsx
@@ -1,6 +1,6 @@
/* eslint-disable react-hooks/exhaustive-deps */
import React, { useCallback, useEffect, useMemo, useState } from "react"
-import { CircularProgress, Collapse, Grid, Typography, styled } from "@material-ui/core"
+import { CircularProgress, Collapse, Grid, Typography, styled } from "@mui/material"
import { ProposalItem } from "modules/explorer/pages/User"
import { Link } from "react-router-dom"
import { Proposal } from "services/services/dao/mappers/proposal/types"
diff --git a/src/modules/explorer/components/ProposalsTable.tsx b/src/modules/explorer/components/ProposalsTable.tsx
index 4c2f21181..caf9ca667 100644
--- a/src/modules/explorer/components/ProposalsTable.tsx
+++ b/src/modules/explorer/components/ProposalsTable.tsx
@@ -1,5 +1,5 @@
import React from "react"
-import { CircularProgress, Grid, styled, Typography, useMediaQuery, useTheme } from "@material-ui/core"
+import { CircularProgress, Grid, styled, Typography, useMediaQuery, useTheme } from "@mui/material"
import { ResponsiveTableContainer } from "./ResponsiveTable"
import { TableHeader } from "./styled/TableHeader"
import { ProposalTableRow } from "./ProposalTableRow"
@@ -23,7 +23,7 @@ const NoProposals = styled(Typography)(({ theme }) => ({
paddingLeft: 20,
boxSizing: "border-box",
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
textAlign: "center"
}
}))
@@ -41,7 +41,7 @@ const LoaderContainer = styled(Grid)({
export const ProposalsTable: React.FC = ({ status, proposals, isLoading }) => {
const theme = useTheme()
- const isMobileSmall = useMediaQuery(theme.breakpoints.down("sm"))
+ const isMobileSmall = useMediaQuery(theme.breakpoints.down("lg"))
return (
diff --git a/src/modules/explorer/components/ResponsiveDialog.tsx b/src/modules/explorer/components/ResponsiveDialog.tsx
index 60eca3689..235b750fa 100644
--- a/src/modules/explorer/components/ResponsiveDialog.tsx
+++ b/src/modules/explorer/components/ResponsiveDialog.tsx
@@ -1,5 +1,5 @@
import React from "react"
-import { useTheme, useMediaQuery, Dialog, styled, Grid, Typography } from "@material-ui/core"
+import { useTheme, useMediaQuery, Dialog, styled, Grid, Typography } from "@mui/material"
import { BottomSheet } from "./BottomSheet"
import CloseButton from "modules/common/CloseButton"
import BackButton from "modules/common/BackButton"
@@ -14,7 +14,7 @@ const TitleText = styled(Typography)(({ theme }) => ({
lineHeight: "1.2",
textTransform: "capitalize",
fontSize: 24,
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
fontSize: 20
}
}))
@@ -47,7 +47,7 @@ export const ResponsiveDialog: React.FC<{
}> = props => {
const { open, onClose, onGoBack, title, children, template = "sm" } = props
const theme = useTheme()
- const isSmall = useMediaQuery(theme.breakpoints.down("sm"))
+ const isSmall = useMediaQuery(theme.breakpoints.down("lg"))
return isSmall ? (
@@ -112,7 +112,7 @@ export const ProposalFormResponsiveDialog: React.FC<{ open: boolean; onClose: ()
children
}) => {
const theme = useTheme()
- const isSmall = useMediaQuery(theme.breakpoints.down("sm"))
+ const isSmall = useMediaQuery(theme.breakpoints.down("lg"))
return isSmall ? (
diff --git a/src/modules/explorer/components/ResponsiveTable.tsx b/src/modules/explorer/components/ResponsiveTable.tsx
index 798fd7a6a..35989b376 100644
--- a/src/modules/explorer/components/ResponsiveTable.tsx
+++ b/src/modules/explorer/components/ResponsiveTable.tsx
@@ -1,11 +1,11 @@
-import { Box, styled } from "@material-ui/core"
+import { Box, styled } from "@mui/material"
export const ResponsiveTableContainer = styled(Box)(({ theme }) => ({
width: "100%",
padding: "72px 8%",
boxSizing: "border-box",
paddingBottom: "24px",
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
padding: "0",
borderBottom: `2px solid ${theme.palette.primary.light}`
}
diff --git a/src/modules/explorer/components/SearchEndpoints.tsx b/src/modules/explorer/components/SearchEndpoints.tsx
index beb8ad2d1..ef1da4b62 100644
--- a/src/modules/explorer/components/SearchEndpoints.tsx
+++ b/src/modules/explorer/components/SearchEndpoints.tsx
@@ -1,7 +1,9 @@
import React, { useEffect, useState } from "react"
-import { Grid, InputAdornment, makeStyles, styled, TextField, Theme, withStyles } from "@material-ui/core"
-import { SearchOutlined } from "@material-ui/icons"
-import { Autocomplete } from "@material-ui/lab"
+import { Grid, InputAdornment, styled, TextField, Theme } from "@mui/material"
+import makeStyles from "@mui/styles/makeStyles"
+import withStyles from "@mui/styles/withStyles"
+import { SearchOutlined } from "@mui/icons-material"
+import { Autocomplete } from "@mui/material"
import { ArbitraryContract } from "models/Contract"
export interface ContractEndpoint {
diff --git a/src/modules/explorer/components/SideBar.tsx b/src/modules/explorer/components/SideBar.tsx
index c86fc3506..ecbebdad7 100644
--- a/src/modules/explorer/components/SideBar.tsx
+++ b/src/modules/explorer/components/SideBar.tsx
@@ -1,4 +1,4 @@
-import { Grid, styled, IconButton, useMediaQuery, useTheme, Theme } from "@material-ui/core"
+import { Grid, styled, IconButton, useMediaQuery, useTheme, Theme } from "@mui/material"
import React, { useEffect, useMemo, useState } from "react"
import { ReactComponent as HouseIcon } from "assets/logos/home.svg"
@@ -27,7 +27,7 @@ export const debounce = any>(callback: T, waitFor
const Bar = styled(Grid)(({ theme }) => ({
minWidth: 102,
borderRight: `2px solid ${theme.palette.primary.light}`,
- [theme.breakpoints.down("xs")]: {
+ [theme.breakpoints.down("md")]: {
width: "100%",
borderBottom: `2px solid ${theme.palette.primary.light}`,
borderRight: `unset`
@@ -37,7 +37,7 @@ const Bar = styled(Grid)(({ theme }) => ({
const SidebarButton = styled(IconButton)(({ theme }) => ({
paddingTop: 32,
width: "100%",
- [theme.breakpoints.down("xs")]: {
+ [theme.breakpoints.down("md")]: {
paddingTop: 12
}
}))
@@ -108,7 +108,7 @@ const BottomNavBar: React.FC = ({ children }) => {
const SideNavBar: React.FC = ({ children }) => {
const theme = useTheme()
- const isMobileExtraSmall = useMediaQuery(theme.breakpoints.down("xs"))
+ const isMobileExtraSmall = useMediaQuery(theme.breakpoints.down("md"))
return (
@@ -130,7 +130,7 @@ export const SideBar: React.FC = () => {
const daoId = useDAOID()
const { data: dao } = useDAO(daoId)
const theme = useTheme()
- const isMobileExtraSmall = useMediaQuery(theme.breakpoints.down("xs"))
+ const isMobileExtraSmall = useMediaQuery(theme.breakpoints.down("md"))
const SIDE_BAR_ICONS = useMemo(() => {
if (!dao) {
return []
diff --git a/src/modules/explorer/components/StatusBadge.tsx b/src/modules/explorer/components/StatusBadge.tsx
index 26e556a69..91fcf6471 100644
--- a/src/modules/explorer/components/StatusBadge.tsx
+++ b/src/modules/explorer/components/StatusBadge.tsx
@@ -1,5 +1,5 @@
import React from "react"
-import { styled, Grid, Theme, Typography, GridProps } from "@material-ui/core"
+import { styled, Grid, Theme, Typography, GridProps } from "@mui/material"
import { ProposalStatus } from "services/services/dao/mappers/proposal/types"
export const statusColors = (status: ProposalStatus | string): { background: string; color: string; text: string } => {
@@ -100,7 +100,9 @@ export const statusColors = (status: ProposalStatus | string): { background: str
}
}
-export const Badge = styled(Grid)(({ status }: { status: ProposalStatus | string; theme: Theme }) => ({
+export const Badge = styled(Grid, { shouldForwardProp: prop => prop !== "status" })<{
+ status: ProposalStatus | string
+}>(({ status }) => ({
"borderRadius": 50,
"boxSizing": "border-box",
"minWidth": 87,
diff --git a/src/modules/explorer/components/TemplateHeader.tsx b/src/modules/explorer/components/TemplateHeader.tsx
index d5b830120..0c0a2a544 100644
--- a/src/modules/explorer/components/TemplateHeader.tsx
+++ b/src/modules/explorer/components/TemplateHeader.tsx
@@ -1,5 +1,5 @@
import React from "react"
-import { Grid, styled, Typography, useMediaQuery, useTheme } from "@material-ui/core"
+import { Grid, styled, Typography, useMediaQuery, useTheme } from "@mui/material"
import { RectangleContainer } from "./styled/RectangleHeader"
import { CopyAddress } from "modules/common/CopyAddress"
import { useDAO } from "services/services/dao/hooks/useDAO"
@@ -15,7 +15,7 @@ const Container = styled(Grid)(({ theme }) => ({
const CustomRectangleContainer = styled(RectangleContainer)(({ theme }) => ({
borderBottom: "none",
paddingBottom: "0",
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
paddingBottom: 40
}
}))
@@ -25,7 +25,7 @@ export const TemplateHeader: React.FC<{
showSendXtz?: boolean
}> = ({ template, children }) => {
const theme = useTheme()
- const isMobileSmall = useMediaQuery(theme.breakpoints.down("sm"))
+ const isMobileSmall = useMediaQuery(theme.breakpoints.down("lg"))
const daoId = useDAOID()
const { data: dao } = useDAO(daoId)
diff --git a/src/modules/explorer/components/Toolbar.tsx b/src/modules/explorer/components/Toolbar.tsx
index ae568a0d6..c7a1f5c7a 100644
--- a/src/modules/explorer/components/Toolbar.tsx
+++ b/src/modules/explorer/components/Toolbar.tsx
@@ -1,5 +1,5 @@
import React from "react"
-import { Box, Grid, useTheme, useMediaQuery } from "@material-ui/core"
+import { Box, Grid, useTheme, useMediaQuery } from "@mui/material"
import HomeButton from "assets/logos/homebase-logo.svg"
import { NavigationMenu } from "modules/explorer/components/NavigationMenu"
@@ -10,7 +10,7 @@ import { Header, StyledAppBar, StyledToolbar, LogoText, LogoItem, ToolbarContain
export const Navbar: React.FC<{ disableMobileMenu?: boolean }> = ({ disableMobileMenu, children }) => {
const theme = useTheme()
const isMobileExtraSmall = useMediaQuery(theme.breakpoints.down("mobile"))
- const isMobileSmall = useMediaQuery(theme.breakpoints.down("sm"))
+ const isMobileSmall = useMediaQuery(theme.breakpoints.down("lg"))
return (
diff --git a/src/modules/explorer/components/TransferBadge.tsx b/src/modules/explorer/components/TransferBadge.tsx
index 7b5a8e46f..8dfa422c3 100644
--- a/src/modules/explorer/components/TransferBadge.tsx
+++ b/src/modules/explorer/components/TransferBadge.tsx
@@ -1,5 +1,5 @@
-import { Grid, GridProps, styled, Typography, useMediaQuery, useTheme } from "@material-ui/core"
-import ArrowForward from "@material-ui/icons/ArrowForward"
+import { Grid, GridProps, styled, Typography, useMediaQuery, useTheme } from "@mui/material"
+import ArrowForward from "@mui/icons-material/ArrowForward"
import { BigNumber } from "bignumber.js"
import React from "react"
import { useTokenMetadata } from "services/contracts/baseDAO/hooks/useTokenMetadata"
@@ -40,7 +40,7 @@ export const TransferBadge: React.FC = ({ address, amount, contract, toke
const { data } = useTokenMetadata(contract, tokenId)
const { network } = useTezos()
const theme = useTheme()
- const isMobileSmall = useMediaQuery(theme.breakpoints.down("sm"))
+ const isMobileSmall = useMediaQuery(theme.breakpoints.down("lg"))
const openBlockExplorer = () => {
window.open(`https://${networkNameMap[network]}.tzkt.io/` + address, "_blank")
diff --git a/src/modules/explorer/components/UpdateRegistryDialog.tsx b/src/modules/explorer/components/UpdateRegistryDialog.tsx
index 5c9548caf..4f7066059 100644
--- a/src/modules/explorer/components/UpdateRegistryDialog.tsx
+++ b/src/modules/explorer/components/UpdateRegistryDialog.tsx
@@ -1,5 +1,5 @@
import React, { useState, useMemo } from "react"
-import { Grid, DialogContent, TextField, styled } from "@material-ui/core"
+import { Grid, DialogContent, TextField, styled } from "@mui/material"
import { ErrorText } from "modules/explorer/components/styled/ErrorText"
import { Registry } from "services/contracts/baseDAO"
import * as Yup from "yup"
diff --git a/src/modules/explorer/components/UserBadge.tsx b/src/modules/explorer/components/UserBadge.tsx
index 495597d05..88dbd8425 100644
--- a/src/modules/explorer/components/UserBadge.tsx
+++ b/src/modules/explorer/components/UserBadge.tsx
@@ -1,4 +1,4 @@
-import { Grid, Typography, Link, useTheme, useMediaQuery, styled } from "@material-ui/core"
+import { Grid, Typography, Link, useTheme, useMediaQuery, styled } from "@mui/material"
import React from "react"
import { useTezos } from "services/beacon/hooks/useTezos"
import { networkNameMap } from "services/bakingBad"
@@ -17,8 +17,8 @@ export const UserBadge: React.FC<{
textStyle?: any
}> = ({ address, size, gap, short, textStyle }) => {
const theme = useTheme()
- const isMobileSmall = useMediaQuery(theme.breakpoints.down("sm"))
- const isMediumSmall = useMediaQuery(theme.breakpoints.down("md"))
+ const isMobileSmall = useMediaQuery(theme.breakpoints.down("lg"))
+ const isMediumSmall = useMediaQuery(theme.breakpoints.down("xl"))
const { network } = useTezos()
return (
diff --git a/src/modules/explorer/components/UserBalances.tsx b/src/modules/explorer/components/UserBalances.tsx
index 0a626a656..e25bdbb8b 100644
--- a/src/modules/explorer/components/UserBalances.tsx
+++ b/src/modules/explorer/components/UserBalances.tsx
@@ -1,4 +1,4 @@
-import { Button, Grid, styled, Typography, useMediaQuery, useTheme } from "@material-ui/core"
+import { Button, Grid, styled, Typography, useMediaQuery, useTheme } from "@mui/material"
import React, { useMemo } from "react"
import { useTezos } from "services/beacon/hooks/useTezos"
import { useDAO } from "services/services/dao/hooks/useDAO"
@@ -81,7 +81,7 @@ const OnChainBox = styled(Grid)(({ theme }) => ({
borderRadius: 8,
background: theme.palette.primary.main,
maxWidth: "32% !important",
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
maxWidth: "100% !important",
marginBottom: 12
}
diff --git a/src/modules/explorer/components/UserBalancesWidget.tsx b/src/modules/explorer/components/UserBalancesWidget.tsx
index 1e5a8febf..10a2f0c51 100644
--- a/src/modules/explorer/components/UserBalancesWidget.tsx
+++ b/src/modules/explorer/components/UserBalancesWidget.tsx
@@ -1,4 +1,4 @@
-import { Grid, styled, Theme, Typography, useTheme } from "@material-ui/core"
+import { Grid, styled, Theme, Typography, useTheme } from "@mui/material"
import BigNumber from "bignumber.js"
import hexToRgba from "hex-to-rgba"
import React, { useMemo } from "react"
diff --git a/src/modules/explorer/components/UserMenuSheet.tsx b/src/modules/explorer/components/UserMenuSheet.tsx
index c34c092d8..b7ddc2644 100644
--- a/src/modules/explorer/components/UserMenuSheet.tsx
+++ b/src/modules/explorer/components/UserMenuSheet.tsx
@@ -1,9 +1,9 @@
-import { styled, Grid, Typography } from "@material-ui/core"
+import { styled, Grid, Typography } from "@mui/material"
import { Blockie } from "modules/common/Blockie"
import React from "react"
import { useTezos } from "services/beacon/hooks/useTezos"
import { toShortAddress } from "services/contracts/utils"
-import { ArrowDownwardOutlined, ExitToApp, FileCopyOutlined } from "@material-ui/icons"
+import { ArrowDownwardOutlined, ExitToApp, FileCopyOutlined } from "@mui/icons-material"
import { BottomSheet } from "./BottomSheet"
const SheetContainer = styled(Grid)({
diff --git a/src/modules/explorer/components/UsersTable.tsx b/src/modules/explorer/components/UsersTable.tsx
index b3acd4426..493aa9fda 100644
--- a/src/modules/explorer/components/UsersTable.tsx
+++ b/src/modules/explorer/components/UsersTable.tsx
@@ -1,5 +1,5 @@
import React, { useState } from "react"
-import { styled, Grid, Typography, useTheme, useMediaQuery } from "@material-ui/core"
+import { styled, Grid, Typography, useTheme, useMediaQuery } from "@mui/material"
import dayjs from "dayjs"
import { Blockie } from "modules/common/Blockie"
import { CopyButton } from "./CopyButton"
diff --git a/src/modules/explorer/components/ViewButton.tsx b/src/modules/explorer/components/ViewButton.tsx
index 0e6439426..fced14947 100644
--- a/src/modules/explorer/components/ViewButton.tsx
+++ b/src/modules/explorer/components/ViewButton.tsx
@@ -1,4 +1,5 @@
-import { Button, ButtonProps, makeStyles, useTheme } from "@material-ui/core"
+import { Button, ButtonProps, useTheme } from "@mui/material"
+import makeStyles from "@mui/styles/makeStyles"
import React from "react"
import hexToRgba from "hex-to-rgba"
diff --git a/src/modules/explorer/components/VoteDialog.tsx b/src/modules/explorer/components/VoteDialog.tsx
index e611a0df4..252e2584e 100644
--- a/src/modules/explorer/components/VoteDialog.tsx
+++ b/src/modules/explorer/components/VoteDialog.tsx
@@ -1,5 +1,5 @@
import React, { useCallback, useEffect, useMemo } from "react"
-import { Grid, Typography, TextField, Button, useTheme, styled } from "@material-ui/core"
+import { Grid, Typography, TextField, Button, useTheme, styled } from "@mui/material"
import { useParams } from "react-router-dom"
import { useVote } from "services/contracts/baseDAO/hooks/useVote"
import BigNumber from "bignumber.js"
diff --git a/src/modules/explorer/components/VotersDialog.tsx b/src/modules/explorer/components/VotersDialog.tsx
index 7707dcf79..f17c211f5 100644
--- a/src/modules/explorer/components/VotersDialog.tsx
+++ b/src/modules/explorer/components/VotersDialog.tsx
@@ -8,9 +8,10 @@ import {
DialogContentText,
DialogTitle,
CircularProgress,
- makeStyles,
Button
-} from "@material-ui/core"
+} from "@mui/material"
+
+import makeStyles from "@mui/styles/makeStyles"
import { ProgressBar } from "modules/explorer/components/ProgressBar"
import { useVotesStats } from "../hooks/useVotesStats"
@@ -65,14 +66,14 @@ const Row = styled(Grid)(({ theme }) => ({
marginBottom: 30,
borderBottom: `2px solid ${theme.palette.primary.light}`
},
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
padding: "20px 34px"
}
}))
const TableHeader = styled(Grid)(({ theme }) => ({
padding: "23px 64px",
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
padding: "23px 24px"
}
}))
@@ -88,7 +89,7 @@ const NoTokens = styled(Grid)(({ theme }) => ({
paddingBottom: 0,
display: "flex",
alignItems: "end",
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
padding: "20px 34px"
}
}))
@@ -113,7 +114,7 @@ const styles = makeStyles({
const Header = styled(Grid)(({ theme }) => ({
padding: "20px 64px",
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
padding: "20px 34px"
}
}))
diff --git a/src/modules/explorer/components/VotersProgress.tsx b/src/modules/explorer/components/VotersProgress.tsx
index 157cd6b58..cc7f72e43 100644
--- a/src/modules/explorer/components/VotersProgress.tsx
+++ b/src/modules/explorer/components/VotersProgress.tsx
@@ -1,5 +1,5 @@
import React, { useState } from "react"
-import { Grid, styled, Theme, Typography, useMediaQuery, useTheme } from "@material-ui/core"
+import { Grid, styled, Theme, Typography, useMediaQuery, useTheme } from "@mui/material"
import { MultiColorBar as CustomBar, ProgressBar } from "modules/explorer/components/ProgressBar"
import { useVotesStats } from "../hooks/useVotesStats"
import BigNumber from "bignumber.js"
@@ -26,7 +26,7 @@ const StatusTitle = styled(Typography)({
const PercentageValue = styled(Typography)(({ theme }: { theme: Theme }) => ({
fontWeight: 300,
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
marginTop: 8
}
}))
@@ -41,7 +41,7 @@ const formatConfig = {
export const VotersProgress: React.FC = ({ showButton, daoId, proposalId, wrapAll }) => {
const theme = useTheme()
const [open, setOpen] = useState(false)
- const isMobileSmall = useMediaQuery(theme.breakpoints.down("sm"))
+ const isMobileSmall = useMediaQuery(theme.breakpoints.down("lg"))
const { data: proposalData } = useProposal(daoId, proposalId)
const proposal = proposalData as Proposal | undefined
const quorumThreshold = proposal?.quorumThreshold || new BigNumber(0)
diff --git a/src/modules/explorer/components/VotesDetailDialog.tsx b/src/modules/explorer/components/VotesDetailDialog.tsx
index b391b00eb..45b578f19 100644
--- a/src/modules/explorer/components/VotesDetailDialog.tsx
+++ b/src/modules/explorer/components/VotesDetailDialog.tsx
@@ -1,5 +1,5 @@
import React, { useMemo } from "react"
-import { Button, Grid, styled, Theme, Typography } from "@material-ui/core"
+import { Button, Grid, styled, Theme, Typography } from "@mui/material"
import { ResponsiveDialog } from "./ResponsiveDialog"
import { useVotesStats } from "../hooks/useVotesStats"
import { BigNumber } from "bignumber.js"
diff --git a/src/modules/explorer/components/VotesTable.tsx b/src/modules/explorer/components/VotesTable.tsx
index dae7c7572..6875d76d9 100644
--- a/src/modules/explorer/components/VotesTable.tsx
+++ b/src/modules/explorer/components/VotesTable.tsx
@@ -1,5 +1,5 @@
import React, { useEffect, useState } from "react"
-import { Grid, Table, TableBody, TableCell, TableHead, TableRow, Typography, styled } from "@material-ui/core"
+import { Grid, Table, TableBody, TableCell, TableHead, TableRow, Typography, styled } from "@mui/material"
import { toShortAddress } from "../../../services/contracts/utils"
import { Blockie } from "modules/common/Blockie"
import ReactPaginate from "react-paginate"
diff --git a/src/modules/explorer/components/WarningDialog.tsx b/src/modules/explorer/components/WarningDialog.tsx
index 111b28b8c..ed394867a 100644
--- a/src/modules/explorer/components/WarningDialog.tsx
+++ b/src/modules/explorer/components/WarningDialog.tsx
@@ -1,5 +1,5 @@
import React, { useState } from "react"
-import { styled, Grid, Typography, Checkbox, FormControlLabel, Link } from "@material-ui/core"
+import { styled, Grid, Typography, Checkbox, FormControlLabel, Link } from "@mui/material"
import { SendButton } from "./ProposalFormSendButton"
import { ResponsiveDialog } from "./ResponsiveDialog"
diff --git a/src/modules/explorer/components/XTZTransferBadge.tsx b/src/modules/explorer/components/XTZTransferBadge.tsx
index 12f496f83..3829ae590 100644
--- a/src/modules/explorer/components/XTZTransferBadge.tsx
+++ b/src/modules/explorer/components/XTZTransferBadge.tsx
@@ -1,6 +1,6 @@
import React from "react"
-import { Grid, GridProps, Link, styled, Typography, useMediaQuery, useTheme } from "@material-ui/core"
-import ArrowForward from "@material-ui/icons/ArrowForward"
+import { Grid, GridProps, Link, styled, Typography, useMediaQuery, useTheme } from "@mui/material"
+import ArrowForward from "@mui/icons-material/ArrowForward"
import { BigNumber } from "bignumber.js"
import { mutezToXtz, toShortAddress } from "services/contracts/utils"
import { CopyButton } from "./CopyButton"
@@ -35,7 +35,7 @@ const formatConfig = {
export const XTZTransferBadge: React.FC = ({ address, amount, ...props }) => {
const { network } = useTezos()
const theme = useTheme()
- const isMobileSmall = useMediaQuery(theme.breakpoints.down("sm"))
+ const isMobileSmall = useMediaQuery(theme.breakpoints.down("lg"))
const openBlockExplorer = () => {
window.open(`https://${networkNameMap[network]}.tzkt.io/` + address, "_blank")
diff --git a/src/modules/explorer/components/aci/Fields.tsx b/src/modules/explorer/components/aci/Fields.tsx
index 335994b26..acc3d91ef 100644
--- a/src/modules/explorer/components/aci/Fields.tsx
+++ b/src/modules/explorer/components/aci/Fields.tsx
@@ -3,7 +3,7 @@ import assertNever from "assert-never"
import { Field, FieldArray, FieldProps, Form, Formik, useFormikContext } from "formik"
import type { token, tokenMap, tokenValueType } from "../../../../services/aci"
import { showName, getFieldName, allocateNewTokenCounter } from "../../../../services/aci"
-import { styled, Typography } from "@material-ui/core"
+import { styled, Typography } from "@mui/material"
import { ProposalFormInput } from "../ProposalFormInput"
import { Button } from "components/ui/Button"
diff --git a/src/modules/explorer/components/styled/ErrorText.tsx b/src/modules/explorer/components/styled/ErrorText.tsx
index 23bc010b4..2d783d726 100644
--- a/src/modules/explorer/components/styled/ErrorText.tsx
+++ b/src/modules/explorer/components/styled/ErrorText.tsx
@@ -1,4 +1,4 @@
-import { styled, Typography } from "@material-ui/core"
+import { styled, Typography } from "@mui/material"
export const ErrorText = styled(Typography)({
fontSize: 14,
diff --git a/src/modules/explorer/components/styled/HighlightedBadge.tsx b/src/modules/explorer/components/styled/HighlightedBadge.tsx
index f9a6166ef..80aa9272a 100644
--- a/src/modules/explorer/components/styled/HighlightedBadge.tsx
+++ b/src/modules/explorer/components/styled/HighlightedBadge.tsx
@@ -1,4 +1,4 @@
-import { styled, Grid } from "@material-ui/core"
+import { styled, Grid } from "@mui/material"
import hexToRgba from "hex-to-rgba"
export const HighlightedBadge = styled(Grid)(({ theme }) => ({
diff --git a/src/modules/explorer/components/styled/InfoIcon.tsx b/src/modules/explorer/components/styled/InfoIcon.tsx
index 0b46585b1..a68de9b3d 100644
--- a/src/modules/explorer/components/styled/InfoIcon.tsx
+++ b/src/modules/explorer/components/styled/InfoIcon.tsx
@@ -1,5 +1,5 @@
-import { styled } from "@material-ui/core"
-import { InfoOutlined } from "@material-ui/icons"
+import { styled } from "@mui/material"
+import { InfoOutlined } from "@mui/icons-material"
export const InfoIcon = styled(InfoOutlined)({
cursor: "default",
diff --git a/src/modules/explorer/components/styled/ProfileAvatar.tsx b/src/modules/explorer/components/styled/ProfileAvatar.tsx
index 6fcc59452..fbc5c3423 100644
--- a/src/modules/explorer/components/styled/ProfileAvatar.tsx
+++ b/src/modules/explorer/components/styled/ProfileAvatar.tsx
@@ -1,5 +1,5 @@
import React from "react"
-import { Avatar, styled } from "@material-ui/core"
+import { Avatar, styled } from "@mui/material"
import { Blockie } from "modules/common/Blockie"
import { useProfileClaim } from "services/tzprofiles/hooks/useProfileClaim"
diff --git a/src/modules/explorer/components/styled/RectangleHeader.tsx b/src/modules/explorer/components/styled/RectangleHeader.tsx
index dfa502429..fce04f7cc 100644
--- a/src/modules/explorer/components/styled/RectangleHeader.tsx
+++ b/src/modules/explorer/components/styled/RectangleHeader.tsx
@@ -1,10 +1,10 @@
-import { Grid, styled } from "@material-ui/core"
+import { Grid, styled } from "@mui/material"
export const RectangleContainer = styled(Grid)(({ theme }) => ({
minHeight: 125,
padding: "68px 8%",
borderBottom: `2px solid ${theme.palette.primary.light}`,
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
padding: "35px 8%"
}
}))
diff --git a/src/modules/explorer/components/styled/SearchLambda.tsx b/src/modules/explorer/components/styled/SearchLambda.tsx
index c8c4ceace..37a9a2ad3 100644
--- a/src/modules/explorer/components/styled/SearchLambda.tsx
+++ b/src/modules/explorer/components/styled/SearchLambda.tsx
@@ -1,7 +1,9 @@
import React from "react"
-import { Box, Grid, InputAdornment, makeStyles, Popper, styled, TextField, Theme, withStyles } from "@material-ui/core"
-import { SearchOutlined } from "@material-ui/icons"
-import { Autocomplete } from "@material-ui/lab"
+import { Box, Grid, InputAdornment, Popper, styled, TextField, Theme } from "@mui/material"
+import makeStyles from "@mui/styles/makeStyles"
+import withStyles from "@mui/styles/withStyles"
+import { SearchOutlined } from "@mui/icons-material"
+import { Autocomplete } from "@mui/material"
import { Lambda } from "services/bakingBad/lambdas/types"
type LambdaValues = {
diff --git a/src/modules/explorer/components/styled/TableHeader.tsx b/src/modules/explorer/components/styled/TableHeader.tsx
index 8f0ec5da0..fdc5d90d0 100644
--- a/src/modules/explorer/components/styled/TableHeader.tsx
+++ b/src/modules/explorer/components/styled/TableHeader.tsx
@@ -1,4 +1,4 @@
-import { styled, Grid } from "@material-ui/core"
+import { styled, Grid } from "@mui/material"
export const TableHeader = styled(Grid)(({ theme }) => ({
borderBottom: `2px solid ${theme.palette.primary.light}`,
diff --git a/src/modules/explorer/components/tables/RowContainer.tsx b/src/modules/explorer/components/tables/RowContainer.tsx
index 8e2967a61..5f769b778 100644
--- a/src/modules/explorer/components/tables/RowContainer.tsx
+++ b/src/modules/explorer/components/tables/RowContainer.tsx
@@ -1,11 +1,11 @@
-import { Grid, styled } from "@material-ui/core"
+import { Grid, styled } from "@mui/material"
export const RowContainer = styled(Grid)(({ theme }) => ({
minHeight: 155,
padding: "0px 20px",
borderBottom: `2px solid ${theme.palette.primary.light}`,
cursor: "pointer",
- [theme.breakpoints.down("md")]: {
+ [theme.breakpoints.down("xl")]: {
padding: "35px 0"
}
}))
diff --git a/src/modules/explorer/pages/Config/components/DAOInfoTable.tsx b/src/modules/explorer/pages/Config/components/DAOInfoTable.tsx
index 3e9ad93f8..8c3d00249 100644
--- a/src/modules/explorer/pages/Config/components/DAOInfoTable.tsx
+++ b/src/modules/explorer/pages/Config/components/DAOInfoTable.tsx
@@ -10,7 +10,7 @@ import {
Typography,
useMediaQuery,
useTheme
-} from "@material-ui/core"
+} from "@mui/material"
import React from "react"
import { useDAO } from "services/services/dao/hooks/useDAO"
import BigNumber from "bignumber.js"
@@ -22,18 +22,18 @@ import { CopyAddress } from "modules/common/CopyAddress"
const RowValue = styled(Typography)(({ theme }) => ({
fontWeight: 300,
fontSize: 18,
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
fontSize: 16
}
}))
const CustomTableContainer = styled(TableContainer)(({ theme }) => ({
width: "inherit",
- [theme.breakpoints.down("sm")]: {}
+ [theme.breakpoints.down("lg")]: {}
}))
const CustomTableCell = styled(TableCell)(({ theme }) => ({
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
paddingBottom: 0,
paddingLeft: "16px !important",
textAlign: "end"
@@ -41,7 +41,7 @@ const CustomTableCell = styled(TableCell)(({ theme }) => ({
}))
const CustomTableCellValue = styled(TableCell)(({ theme }) => ({
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
paddingTop: 0,
paddingRight: "16px !important",
textAlign: "end",
@@ -53,7 +53,7 @@ export const DaoInfoTables: React.FC = () => {
const daoId = useDAOID()
const { data: dao } = useDAO(daoId)
const theme = useTheme()
- const isMobileSmall = useMediaQuery(theme.breakpoints.down("sm"))
+ const isMobileSmall = useMediaQuery(theme.breakpoints.down("lg"))
const currentDelegate = useDelegate(dao && dao?.data.address ? dao?.data.address : "")
return (
diff --git a/src/modules/explorer/pages/Config/index.tsx b/src/modules/explorer/pages/Config/index.tsx
index 1a30609fd..09f6a8234 100644
--- a/src/modules/explorer/pages/Config/index.tsx
+++ b/src/modules/explorer/pages/Config/index.tsx
@@ -1,4 +1,4 @@
-import { Button, Grid, styled, Tooltip, Typography, useMediaQuery, useTheme } from "@material-ui/core"
+import { Button, Grid, styled, Tooltip, Typography, useMediaQuery, useTheme } from "@mui/material"
import React, { useCallback, useState } from "react"
import { useFlush } from "services/contracts/baseDAO/hooks/useFlush"
@@ -79,7 +79,7 @@ const HeroContainer = styled(ContentContainer)(({ theme }) => ({
display: "inline-flex",
alignItems: "center",
maxHeight: 132,
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
maxHeight: "fit-content"
}
}))
@@ -123,7 +123,7 @@ const defaultOpenSupportedExecuteProposalModal = "none"
export const Config: React.FC = () => {
const theme = useTheme()
- const isMobileSmall = useMediaQuery(theme.breakpoints.down("sm"))
+ const isMobileSmall = useMediaQuery(theme.breakpoints.down("lg"))
const [openModal, setOpenModal] = useState(false)
const [openModalLambda, setOpenModalLambda] = useState(false)
const daoId = useDAOID()
diff --git a/src/modules/explorer/pages/DAO/components/SettingsDialog.tsx b/src/modules/explorer/pages/DAO/components/SettingsDialog.tsx
index 20383dc4b..6c3895dff 100644
--- a/src/modules/explorer/pages/DAO/components/SettingsDialog.tsx
+++ b/src/modules/explorer/pages/DAO/components/SettingsDialog.tsx
@@ -1,4 +1,4 @@
-import { Grid, styled, Typography, useMediaQuery, useTheme } from "@material-ui/core"
+import { Grid, styled, Typography, useMediaQuery, useTheme } from "@mui/material"
import { RegistryProposalFormValues } from "modules/explorer/components/UpdateRegistryDialog"
import { TreasuryProposalFormValues } from "modules/explorer/components/NewTreasuryProposalDialog"
import React, { useState } from "react"
@@ -88,7 +88,7 @@ export const SettingsDialog: React.FC = ({ open, handleClose }) => {
const daoId = useDAOID()
const { data } = useDAO(daoId)
const theme = useTheme()
- const isMobileSmall = useMediaQuery(theme.breakpoints.down("sm"))
+ const isMobileSmall = useMediaQuery(theme.breakpoints.down("lg"))
const liteDAOId = data?.liteDAOData?._id
const shouldDisable = useIsProposalButtonDisabled(daoId)
diff --git a/src/modules/explorer/pages/DAO/index.tsx b/src/modules/explorer/pages/DAO/index.tsx
index 5ad04e341..71c99126b 100644
--- a/src/modules/explorer/pages/DAO/index.tsx
+++ b/src/modules/explorer/pages/DAO/index.tsx
@@ -1,6 +1,6 @@
import React, { useMemo, useState } from "react"
import BigNumber from "bignumber.js"
-import { Grid, styled, Typography, useTheme, useMediaQuery, Avatar } from "@material-ui/core"
+import { Grid, styled, Typography, useTheme, useMediaQuery, Avatar } from "@mui/material"
import { useDAO } from "services/services/dao/hooks/useDAO"
import { useDAOID } from "./router"
@@ -14,7 +14,7 @@ import { DaoSettingModal } from "./components/Settings"
import SettingsIcon from "@mui/icons-material/Settings"
import { SettingsDialog } from "./components/SettingsDialog"
import { IconButton } from "@mui/material"
-import { FileCopyOutlined } from "@material-ui/icons"
+import { FileCopyOutlined } from "@mui/icons-material"
export const StyledAvatar = styled(Avatar)({
height: 50,
@@ -23,7 +23,7 @@ export const StyledAvatar = styled(Avatar)({
const HeroContainer = styled(ContentContainer)(({ theme }) => ({
padding: 38,
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
width: "inherit"
}
}))
@@ -86,7 +86,7 @@ export const DAOOverview: React.FC = () => {
const { data, cycleInfo, ledger } = useDAO(daoId)
console.log("dataDAO", data)
const theme = useTheme()
- const isExtraSmall = useMediaQuery(theme.breakpoints.down("xs"))
+ const isExtraSmall = useMediaQuery(theme.breakpoints.down("md"))
const symbol = data?.data?.token?.symbol?.toUpperCase() || "Unknown"
const name = data?.data?.name
diff --git a/src/modules/explorer/pages/DAO/router.tsx b/src/modules/explorer/pages/DAO/router.tsx
index a2e9f8965..ed065b271 100644
--- a/src/modules/explorer/pages/DAO/router.tsx
+++ b/src/modules/explorer/pages/DAO/router.tsx
@@ -1,4 +1,4 @@
-import { styled, useTheme } from "@material-ui/core"
+import { styled, useTheme } from "@mui/material"
import { NotFound } from "modules/explorer/components/NotFound"
import { NotIndexed } from "modules/explorer/components/NotIndexed"
import { DAOOverview } from "modules/explorer/pages/DAO/index"
diff --git a/src/modules/explorer/pages/DAOList/components/ConnectMessage.tsx b/src/modules/explorer/pages/DAOList/components/ConnectMessage.tsx
index 41e13dbbe..8b0658c89 100644
--- a/src/modules/explorer/pages/DAOList/components/ConnectMessage.tsx
+++ b/src/modules/explorer/pages/DAOList/components/ConnectMessage.tsx
@@ -1,5 +1,5 @@
import React from "react"
-import { Grid, Link, styled, Theme, Typography } from "@material-ui/core"
+import { Grid, Link, styled, Theme, Typography } from "@mui/material"
import { useTezos } from "services/beacon/hooks/useTezos"
const Container = styled(Grid)(({ theme }: { theme: Theme }) => ({
diff --git a/src/modules/explorer/pages/DAOList/components/DAOItem.tsx b/src/modules/explorer/pages/DAOList/components/DAOItem.tsx
index 27714e2ca..53e4c8ca3 100644
--- a/src/modules/explorer/pages/DAOList/components/DAOItem.tsx
+++ b/src/modules/explorer/pages/DAOList/components/DAOItem.tsx
@@ -1,4 +1,4 @@
-import { styled, Grid, Theme, Typography, Link, useTheme, useMediaQuery, Tooltip } from "@material-ui/core"
+import { styled, Grid, Theme, Typography, Link, useTheme, useMediaQuery, Tooltip } from "@mui/material"
import React from "react"
import { EnvKey, getEnv } from "services/config"
import ReactHtmlParser from "react-html-parser"
@@ -64,11 +64,11 @@ const SymbolText = styled(Typography)(({ theme }: { theme: Theme }) => ({
lineHeight: "normal",
marginTop: 8,
- [theme.breakpoints.down("md")]: {
+ [theme.breakpoints.down("xl")]: {
fontSize: 18
},
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
fontSize: 18,
marginLeft: "0%"
}
diff --git a/src/modules/explorer/pages/DAOList/components/Searchbar.tsx b/src/modules/explorer/pages/DAOList/components/Searchbar.tsx
index 7cd3d7774..ce0b09a0e 100644
--- a/src/modules/explorer/pages/DAOList/components/Searchbar.tsx
+++ b/src/modules/explorer/pages/DAOList/components/Searchbar.tsx
@@ -1,6 +1,7 @@
import React from "react"
-import { InputAdornment, styled, TextField, Theme, withStyles } from "@material-ui/core"
-import { SearchOutlined } from "@material-ui/icons"
+import { InputAdornment, styled, TextField, Theme } from "@mui/material"
+import withStyles from "@mui/styles/withStyles"
+import { SearchOutlined } from "@mui/icons-material"
const StyledInput = withStyles((theme: Theme) => ({
root: {
diff --git a/src/modules/explorer/pages/DAOList/index.tsx b/src/modules/explorer/pages/DAOList/index.tsx
index 6026c4dc8..d55b8fa9d 100644
--- a/src/modules/explorer/pages/DAOList/index.tsx
+++ b/src/modules/explorer/pages/DAOList/index.tsx
@@ -1,4 +1,4 @@
-import { Button, CircularProgress, Grid, Link, Paper, Typography, useMediaQuery, useTheme } from "@material-ui/core"
+import { Button, CircularProgress, Grid, Link, Paper, Typography, useMediaQuery, useTheme } from "@mui/material"
import { Navbar } from "../../components/Toolbar"
import { TabPanel } from "modules/explorer/components/TabPanel"
import React, { useCallback, useEffect, useMemo, useState } from "react"
@@ -59,7 +59,7 @@ export const DAOList: React.FC = () => {
} = useAllDAOs(network)
const theme = useTheme()
- const isMobileExtraSmall = useMediaQuery(theme.breakpoints.down("xs"))
+ const isMobileExtraSmall = useMediaQuery(theme.breakpoints.down("md"))
const isMobileSmall = useMediaQuery(theme.breakpoints.down("mobile"))
const [searchText, setSearchText] = useQueryParam("q")
@@ -265,7 +265,6 @@ export const DAOList: React.FC = () => {
})
} catch (_) {}
}}
- color="default"
variant="text"
>
Dismiss
diff --git a/src/modules/explorer/pages/DAOList/styled.tsx b/src/modules/explorer/pages/DAOList/styled.tsx
index 02faab610..a5cbf2486 100644
--- a/src/modules/explorer/pages/DAOList/styled.tsx
+++ b/src/modules/explorer/pages/DAOList/styled.tsx
@@ -1,5 +1,5 @@
import React from "react"
-import { Button, Grid, styled, Theme } from "@material-ui/core"
+import { Button, Grid, styled, Theme } from "@mui/material"
const PageContainer = styled("div")(({ theme }) => ({
width: "1000px",
diff --git a/src/modules/explorer/pages/NFTs/index.tsx b/src/modules/explorer/pages/NFTs/index.tsx
index c4a13dfdb..19f7921c8 100644
--- a/src/modules/explorer/pages/NFTs/index.tsx
+++ b/src/modules/explorer/pages/NFTs/index.tsx
@@ -1,5 +1,5 @@
/* eslint-disable @typescript-eslint/no-non-null-assertion */
-import { Box, CircularProgress, Grid, styled, Typography, useMediaQuery, useTheme } from "@material-ui/core"
+import { Box, CircularProgress, Grid, styled, Typography, useMediaQuery, useTheme } from "@mui/material"
import { NFT as NFTModel } from "models/Token"
import { NFT } from "modules/explorer/components/NFT"
import { NFTDialog } from "modules/explorer/components/NFTDialog"
@@ -69,7 +69,7 @@ export const NFTs: React.FC = () => {
const { account } = useTezos()
const [defaultValues, setDefaultValues] = useState()
const [selectedNFT, setSelectedNFT] = useState()
- const isMobileSmall = useMediaQuery(theme.breakpoints.down("sm"))
+ const isMobileSmall = useMediaQuery(theme.breakpoints.down("lg"))
const [openFiltersDialog, setOpenFiltersDialog] = useState(false)
const [searchText, setSearchText] = useState("")
const [filters, setFilters] = useState()
diff --git a/src/modules/explorer/pages/ProposalDetails/components/CodeVisor.tsx b/src/modules/explorer/pages/ProposalDetails/components/CodeVisor.tsx
index 4b62e4d53..bb4cadf9b 100644
--- a/src/modules/explorer/pages/ProposalDetails/components/CodeVisor.tsx
+++ b/src/modules/explorer/pages/ProposalDetails/components/CodeVisor.tsx
@@ -1,4 +1,4 @@
-import { Grid, styled, Typography } from "@material-ui/core"
+import { Grid, styled, Typography } from "@mui/material"
import React, { useState } from "react"
import { ResponsiveDialog } from "modules/explorer/components/ResponsiveDialog"
import Prism, { highlight, plugins } from "prismjs"
diff --git a/src/modules/explorer/pages/ProposalDetails/components/QuorumThreshold.tsx b/src/modules/explorer/pages/ProposalDetails/components/QuorumThreshold.tsx
index ba77f2ff8..df6b62d37 100644
--- a/src/modules/explorer/pages/ProposalDetails/components/QuorumThreshold.tsx
+++ b/src/modules/explorer/pages/ProposalDetails/components/QuorumThreshold.tsx
@@ -1,5 +1,5 @@
import React from "react"
-import { Grid, Typography, Tooltip, styled } from "@material-ui/core"
+import { Grid, Typography, Tooltip, styled } from "@mui/material"
import { InfoIcon } from "modules/explorer/components/styled/InfoIcon"
import ProgressBar from "react-customizable-progressbar"
import { formatNumber } from "modules/explorer/utils/FormatNumber"
diff --git a/src/modules/explorer/pages/ProposalDetails/index.tsx b/src/modules/explorer/pages/ProposalDetails/index.tsx
index 38bab934b..70c70b507 100644
--- a/src/modules/explorer/pages/ProposalDetails/index.tsx
+++ b/src/modules/explorer/pages/ProposalDetails/index.tsx
@@ -1,5 +1,5 @@
import _ from "lodash"
-import { Button, Grid, Theme, Typography, useMediaQuery, styled, useTheme, Tooltip } from "@material-ui/core"
+import { Button, Grid, Theme, Typography, useMediaQuery, styled, useTheme, Tooltip } from "@mui/material"
import ReactHtmlParser from "react-html-parser"
import { BigNumber } from "bignumber.js"
import ProgressBar from "react-customizable-progressbar"
@@ -60,7 +60,7 @@ const Container = styled(ContentContainer)(({ theme }: { theme: Theme }) => ({
color: "#81feb7",
textDecoration: "underline"
},
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
padding: "30px 38px"
}
}))
@@ -76,7 +76,7 @@ const HistoryItem = styled(Grid)(({ theme }: { theme: Theme }) => ({
display: "flex",
height: "auto",
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
width: "unset"
}
}))
@@ -172,7 +172,7 @@ export const ProposalDetails: React.FC = () => {
const theme = useTheme()
const { data: proposal } = useProposal(daoId, proposalId)
const { data: dao, cycleInfo } = useDAO(daoId)
- const isMobileSmall = useMediaQuery(theme.breakpoints.down("sm"))
+ const isMobileSmall = useMediaQuery(theme.breakpoints.down("lg"))
const { mutate: dropProposal } = useDropProposal()
const { data: holdings } = useDAOHoldings(daoId)
const canDropProposal = useCanDropProposal(daoId, proposalId)
diff --git a/src/modules/explorer/pages/Proposals/index.tsx b/src/modules/explorer/pages/Proposals/index.tsx
index eb567f6c1..9a54d5637 100644
--- a/src/modules/explorer/pages/Proposals/index.tsx
+++ b/src/modules/explorer/pages/Proposals/index.tsx
@@ -1,5 +1,5 @@
import React, { useCallback, useState, useContext, useEffect } from "react"
-import { Button, Grid, styled, Theme, Typography, useMediaQuery, useTheme } from "@material-ui/core"
+import { Button, Grid, styled, Theme, Typography, useMediaQuery, useTheme } from "@mui/material"
import { useDAO } from "services/services/dao/hooks/useDAO"
import { useProposals } from "services/services/dao/hooks/useProposals"
@@ -43,7 +43,7 @@ const HeroContainer = styled(ContentContainer)(({ theme }) => ({
padding: "0px",
display: "inline-flex",
alignItems: "center",
- [theme.breakpoints.down("xs")]: {
+ [theme.breakpoints.down("md")]: {
maxHeight: "fit-content"
}
}))
@@ -87,7 +87,7 @@ const TabsBox = styled(Grid)(({ theme }) => ({
padding: "40px 56px",
minHeight: 300,
width: "100%",
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
padding: "30px 36px"
}
}))
@@ -113,7 +113,7 @@ const TezosProposals = () => {
const { data: proposals } = useProposals(daoId)
const theme = useTheme()
- const isMobileSmall = useMediaQuery(theme.breakpoints.down("xs"))
+ const isMobileSmall = useMediaQuery(theme.breakpoints.down("md"))
const proposalTypeQuery = new URLSearchParams(window.location.search).get("type")
const [openDialog, setOpenDialog] = useState(false)
const [openFiltersDialog, setOpenFiltersDialog] = useState(false)
diff --git a/src/modules/explorer/pages/Registry/components/OverflowCell.tsx b/src/modules/explorer/pages/Registry/components/OverflowCell.tsx
index bbd6b9d6c..e42ab1e89 100644
--- a/src/modules/explorer/pages/Registry/components/OverflowCell.tsx
+++ b/src/modules/explorer/pages/Registry/components/OverflowCell.tsx
@@ -1,5 +1,5 @@
-import { TableCell } from "@material-ui/core"
-import styled from "@material-ui/core/styles/styled"
+import { TableCell } from "@mui/material"
+import { styled } from "@mui/material/styles"
export const OverflowCell = styled(TableCell)({
whiteSpace: "nowrap",
diff --git a/src/modules/explorer/pages/Registry/components/RegistryTable.tsx b/src/modules/explorer/pages/Registry/components/RegistryTable.tsx
index fd6251303..58fd2a8b6 100644
--- a/src/modules/explorer/pages/Registry/components/RegistryTable.tsx
+++ b/src/modules/explorer/pages/Registry/components/RegistryTable.tsx
@@ -11,7 +11,7 @@ import {
Typography,
useMediaQuery,
useTheme
-} from "@material-ui/core"
+} from "@mui/material"
import dayjs from "dayjs"
import { RegistryItemDialog } from "modules/explorer/components/ItemDialog"
import { OverflowCell } from "./OverflowCell"
@@ -149,7 +149,7 @@ const DesktopRegistryTable: React.FC = ({ data }) => {
export const RegistryTable: React.FC<{ data: RowData[] }> = ({ data: propsData }) => {
const theme = useTheme()
- const isSmall = useMediaQuery(theme.breakpoints.down("sm"))
+ const isSmall = useMediaQuery(theme.breakpoints.down("lg"))
const [selectedItem, setSelectedItem] = useState()
const [open, setOpen] = useState(false)
diff --git a/src/modules/explorer/pages/Registry/components/UpdatesTable.tsx b/src/modules/explorer/pages/Registry/components/UpdatesTable.tsx
index 32d2cfc13..fa95ed88a 100644
--- a/src/modules/explorer/pages/Registry/components/UpdatesTable.tsx
+++ b/src/modules/explorer/pages/Registry/components/UpdatesTable.tsx
@@ -10,7 +10,7 @@ import {
Typography,
useMediaQuery,
useTheme
-} from "@material-ui/core"
+} from "@mui/material"
import dayjs from "dayjs"
import { OverflowCell } from "./OverflowCell"
import { useAgoraTopic } from "services/agora/hooks/useTopic"
@@ -135,7 +135,7 @@ const DesktopUpdatesTable: React.FC<{ data: RowData[] }> = ({ data }) => {
export const UpdatesTable: React.FC<{ data: RowData[] }> = ({ data }) => {
const theme = useTheme()
- const isSmall = useMediaQuery(theme.breakpoints.down("sm"))
+ const isSmall = useMediaQuery(theme.breakpoints.down("lg"))
return (
diff --git a/src/modules/explorer/pages/Registry/index.tsx b/src/modules/explorer/pages/Registry/index.tsx
index 7f0ab54d4..d449ea899 100644
--- a/src/modules/explorer/pages/Registry/index.tsx
+++ b/src/modules/explorer/pages/Registry/index.tsx
@@ -1,4 +1,4 @@
-import { Button, Grid, Tooltip, useMediaQuery, useTheme } from "@material-ui/core"
+import { Button, Grid, Tooltip, useMediaQuery, useTheme } from "@mui/material"
import { CopyAddress } from "modules/common/CopyAddress"
import { ProposalFormContainer, ProposalFormDefaultValues } from "modules/explorer/components/ProposalForm"
@@ -18,7 +18,7 @@ import { LambdaDAO } from "services/contracts/baseDAO/lambdaDAO"
export const Registry: React.FC = () => {
const theme = useTheme()
- const isMobileSmall = useMediaQuery(theme.breakpoints.down("sm"))
+ const isMobileSmall = useMediaQuery(theme.breakpoints.down("lg"))
const daoId = useDAOID()
const { data: dao } = useDAO(daoId)
const [updateRegistryOpen, setUpdateRegistryOpen] = useState(false)
diff --git a/src/modules/explorer/pages/Treasury/components/BalancesTable.tsx b/src/modules/explorer/pages/Treasury/components/BalancesTable.tsx
index 2d65325eb..74875a3c3 100644
--- a/src/modules/explorer/pages/Treasury/components/BalancesTable.tsx
+++ b/src/modules/explorer/pages/Treasury/components/BalancesTable.tsx
@@ -1,5 +1,5 @@
import React, { useEffect, useMemo, useState } from "react"
-import { Card, CardContent, Grid, styled, Typography, useMediaQuery, useTheme } from "@material-ui/core"
+import { Card, CardContent, Grid, styled, Typography, useMediaQuery, useTheme } from "@mui/material"
import { ProposalFormContainer, ProposalFormDefaultValues } from "modules/explorer/components/ProposalForm"
import { DAOHolding } from "services/bakingBad/tokenBalances"
import { useDAOHoldings } from "services/contracts/baseDAO/hooks/useDAOHoldings"
@@ -53,14 +53,14 @@ const BalanceText = styled(Typography)(({ theme }) => ({
fontSize: 24,
fontWeight: 300,
marginBottom: 16,
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
fontSize: "24px !important"
}
}))
const BalanceTitle = styled(Typography)(({ theme }) => ({
fontSize: 18,
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
fontSize: "18px !important"
}
}))
@@ -175,7 +175,7 @@ const BalancesList: React.FC = ({
export const BalancesTable: React.FC = () => {
const theme = useTheme()
- const isSmall = useMediaQuery(theme.breakpoints.down("sm"))
+ const isSmall = useMediaQuery(theme.breakpoints.down("lg"))
const daoId = useDAOID()
const shouldDisable = useIsProposalButtonDisabled(daoId)
const { tokenHoldings } = useDAOHoldings(daoId)
diff --git a/src/modules/explorer/pages/Treasury/components/TransfersTable.tsx b/src/modules/explorer/pages/Treasury/components/TransfersTable.tsx
index 61b81cef6..d1c39e20d 100644
--- a/src/modules/explorer/pages/Treasury/components/TransfersTable.tsx
+++ b/src/modules/explorer/pages/Treasury/components/TransfersTable.tsx
@@ -12,7 +12,7 @@ import {
Typography,
useMediaQuery,
useTheme
-} from "@material-ui/core"
+} from "@mui/material"
import { TransferWithBN } from "services/contracts/baseDAO/hooks/useTransfers"
import { useTezos } from "services/beacon/hooks/useTezos"
import { Network } from "services/beacon"
@@ -72,7 +72,7 @@ const ItemContainer = styled(Grid)(({ theme }) => ({
gap: 8,
borderRadius: 8,
background: theme.palette.primary.main,
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
padding: "30px 38px",
gap: 20
}
@@ -244,7 +244,7 @@ const TransfersTableItems: React.FC<{ data: RowData[]; network: Network }> = ({
const [currentPage, setCurrentPage] = useState(0)
const [offset, setOffset] = useState(0)
const theme = useTheme()
- const isSmall = useMediaQuery(theme.breakpoints.down("xs"))
+ const isSmall = useMediaQuery(theme.breakpoints.down("md"))
useEffect(() => {
setOffset(0)
diff --git a/src/modules/explorer/pages/Treasury/components/TreasuryDialog.tsx b/src/modules/explorer/pages/Treasury/components/TreasuryDialog.tsx
index d5fa860ad..6207fa8af 100644
--- a/src/modules/explorer/pages/Treasury/components/TreasuryDialog.tsx
+++ b/src/modules/explorer/pages/Treasury/components/TreasuryDialog.tsx
@@ -1,4 +1,4 @@
-import { Grid, styled, Typography, useMediaQuery, useTheme } from "@material-ui/core"
+import { Grid, styled, Typography, useMediaQuery, useTheme } from "@mui/material"
import { RegistryProposalFormValues } from "modules/explorer/components/UpdateRegistryDialog"
import { TreasuryProposalFormValues } from "modules/explorer/components/NewTreasuryProposalDialog"
import React, { useState } from "react"
@@ -80,7 +80,7 @@ export const TreasuryDialog: React.FC = ({ open, handleClose, handleChang
const daoId = useDAOID()
const { data } = useDAO(daoId)
const theme = useTheme()
- const isMobileSmall = useMediaQuery(theme.breakpoints.down("sm"))
+ const isMobileSmall = useMediaQuery(theme.breakpoints.down("lg"))
const [openTransfer, setOpenTransfer] = useState(false)
const [selectedTab, setSelectedTab] = useState(0)
diff --git a/src/modules/explorer/pages/Treasury/index.tsx b/src/modules/explorer/pages/Treasury/index.tsx
index 5d4981e6d..ad7c2dd36 100644
--- a/src/modules/explorer/pages/Treasury/index.tsx
+++ b/src/modules/explorer/pages/Treasury/index.tsx
@@ -1,5 +1,5 @@
import React, { useMemo, useState } from "react"
-import { Button, Grid, Theme, Tooltip, Typography, useMediaQuery, useTheme } from "@material-ui/core"
+import { Button, Grid, Theme, Tooltip, Typography, useMediaQuery, useTheme } from "@mui/material"
import { useDAO } from "services/services/dao/hooks/useDAO"
import { useDAOID } from "../DAO/router"
import { BalancesTable } from "./components/BalancesTable"
@@ -7,7 +7,7 @@ import { TransfersTable } from "./components/TransfersTable"
import { TransferWithBN, useTransfers } from "../../../../services/contracts/baseDAO/hooks/useTransfers"
import { InfoIcon } from "../../components/styled/InfoIcon"
import { useIsProposalButtonDisabled } from "../../../../services/contracts/baseDAO/hooks/useCycleInfo"
-import { styled } from "@material-ui/core"
+import { styled } from "@mui/material"
import { TabPanel } from "modules/explorer/components/TabPanel"
import { NFTs } from "../NFTs"
import TollIcon from "@mui/icons-material/Toll"
@@ -36,7 +36,7 @@ const TabsBox = styled(Grid)(({ theme }) => ({
padding: "40px 56px",
minHeight: 300,
width: "100%",
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
padding: "30px 36px"
}
}))
@@ -98,14 +98,14 @@ const HeroContainer = styled(ContentContainer)(({ theme }) => ({
padding: "0px",
display: "inline-flex",
alignItems: "center",
- [theme.breakpoints.down("xs")]: {
+ [theme.breakpoints.down("md")]: {
maxHeight: "fit-content"
}
}))
export const Treasury: React.FC = () => {
const theme = useTheme()
- const isMobileSmall = useMediaQuery(theme.breakpoints.down("sm"))
+ const isMobileSmall = useMediaQuery(theme.breakpoints.down("lg"))
const daoId = useDAOID()
const { data: dao } = useDAO(daoId)
const [openTransfer, setOpenTransfer] = useState(false)
diff --git a/src/modules/explorer/pages/User/components/DelegationBanner.tsx b/src/modules/explorer/pages/User/components/DelegationBanner.tsx
index a00fbc8d6..a6e0ea490 100644
--- a/src/modules/explorer/pages/User/components/DelegationBanner.tsx
+++ b/src/modules/explorer/pages/User/components/DelegationBanner.tsx
@@ -1,8 +1,9 @@
/* eslint-disable react-hooks/exhaustive-deps */
import React, { useEffect, useState } from "react"
-import { CircularProgress, Grid, Theme, Typography, styled, withStyles } from "@material-ui/core"
+import { CircularProgress, Grid, Theme, Typography, styled } from "@mui/material"
+import withStyles from "@mui/styles/withStyles"
import { useDAO } from "services/services/dao/hooks/useDAO"
-import { Edit } from "@material-ui/icons"
+import { Edit } from "@mui/icons-material"
import { DelegationDialog } from "./DelegationModal"
import { useDelegationStatus } from "services/contracts/token/hooks/useDelegationStatus"
import { useTezos } from "services/beacon/hooks/useTezos"
diff --git a/src/modules/explorer/pages/User/components/DelegationModal.tsx b/src/modules/explorer/pages/User/components/DelegationModal.tsx
index 8bec2c5c0..0bc69f7f6 100644
--- a/src/modules/explorer/pages/User/components/DelegationModal.tsx
+++ b/src/modules/explorer/pages/User/components/DelegationModal.tsx
@@ -1,5 +1,5 @@
import React, { useEffect, useState } from "react"
-import { Grid, Radio, TextField, Typography, styled } from "@material-ui/core"
+import { Grid, Radio, TextField, Typography, styled } from "@mui/material"
import { DelegationsType, matchTextToStatus } from "./DelegationBanner"
import { ResponsiveDialog } from "modules/explorer/components/ResponsiveDialog"
import { SmallButton } from "modules/common/SmallButton"
diff --git a/src/modules/explorer/pages/User/components/TransactionItem.tsx b/src/modules/explorer/pages/User/components/TransactionItem.tsx
index d0c1db36f..423a2547a 100644
--- a/src/modules/explorer/pages/User/components/TransactionItem.tsx
+++ b/src/modules/explorer/pages/User/components/TransactionItem.tsx
@@ -1,5 +1,5 @@
import React from "react"
-import { Grid, Theme, Typography, styled, useMediaQuery, useTheme } from "@material-ui/core"
+import { Grid, Theme, Typography, styled, useMediaQuery, useTheme } from "@mui/material"
import { TransferWithBN } from "services/contracts/baseDAO/hooks/useTransfers"
import { ReactComponent as DepositIcon } from "assets/logos/deposit_icon.svg"
import { ReactComponent as WithdrawalIcon } from "assets/logos/withdrawal_icon.svg"
@@ -45,7 +45,7 @@ const BlockExplorer = styled(Typography)({
export const TransactionItem: React.FC<{ item: TransferWithBN }> = ({ item, children }) => {
const { network } = useTezos()
const theme = useTheme()
- const isMobileSmall = useMediaQuery(theme.breakpoints.down("sm"))
+ const isMobileSmall = useMediaQuery(theme.breakpoints.down("lg"))
const openBlockExplorer = () => {
window.open(`https://${networkNameMap[network]}.tzkt.io/` + item.hash, "_blank")
diff --git a/src/modules/explorer/pages/User/components/UserMovements.tsx b/src/modules/explorer/pages/User/components/UserMovements.tsx
index 0d6c07ad2..9ec22b447 100644
--- a/src/modules/explorer/pages/User/components/UserMovements.tsx
+++ b/src/modules/explorer/pages/User/components/UserMovements.tsx
@@ -1,5 +1,5 @@
import React, { useEffect, useMemo, useState } from "react"
-import { Button, Grid, Theme, Typography, styled, useMediaQuery, useTheme } from "@material-ui/core"
+import { Button, Grid, Theme, Typography, styled, useMediaQuery, useTheme } from "@mui/material"
import { ReactComponent as VotingInactiveIcon } from "assets/logos/voting_inactive.svg"
import { ReactComponent as VotingActiveIcon } from "assets/logos/voting_active.svg"
import { ReactComponent as VotesActiveIcon } from "assets/logos/votes_active.svg"
@@ -18,7 +18,7 @@ import ReactPaginate from "react-paginate"
import "../../DAOList/styles.css"
import { ReactComponent as TabsSelectedIcon } from "assets/img/tabs-icon-selected.svg"
import FilterAltIcon from "@mui/icons-material/FilterAlt"
-import { ArrowBackIos } from "@material-ui/icons"
+import { ArrowBackIos } from "@mui/icons-material"
import { FilterUserProposalsDialog } from "modules/explorer/components/FiltersUserDialog"
import { useUserVotes } from "modules/lite/explorer/hooks/useUserVotes"
import { usePolls } from "modules/lite/explorer/hooks/usePolls"
@@ -79,7 +79,7 @@ const ActivityContainer = styled(Grid)(({ theme }) => ({
padding: "40px 56px",
borderRadius: 8,
marginTop: 32,
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
padding: "30px 36px"
}
}))
@@ -133,7 +133,7 @@ export const UserMovements: React.FC<{
const [filteredTransactions, setFilteredTransactions] = React.useState()
const { account } = useTezos()
const theme = useTheme()
- const isMobileSmall = useMediaQuery(theme.breakpoints.down("sm"))
+ const isMobileSmall = useMediaQuery(theme.breakpoints.down("lg"))
const [openFiltersDialog, setOpenFiltersDialog] = useState(false)
const [filters, setFilters] = useState()
diff --git a/src/modules/explorer/pages/User/index.tsx b/src/modules/explorer/pages/User/index.tsx
index ef3f4fbb3..8cbb7b753 100644
--- a/src/modules/explorer/pages/User/index.tsx
+++ b/src/modules/explorer/pages/User/index.tsx
@@ -1,4 +1,4 @@
-import { Box, Button, Grid, Theme, Typography, styled, useMediaQuery, useTheme } from "@material-ui/core"
+import { Box, Button, Grid, Theme, Typography, styled, useMediaQuery, useTheme } from "@mui/material"
import dayjs from "dayjs"
import { useDAOID } from "modules/explorer/pages/DAO/router"
import React, { useCallback, useEffect, useMemo, useState } from "react"
@@ -113,7 +113,7 @@ export const User: React.FC = () => {
const { data: proposals } = useProposals(daoId)
const theme = useTheme()
- const isMobileSmall = useMediaQuery(theme.breakpoints.down("sm"))
+ const isMobileSmall = useMediaQuery(theme.breakpoints.down("lg"))
const history = useHistory()
const { data: executedProposals } = useProposals(daoId, ProposalStatus.EXECUTED)
diff --git a/src/modules/home/FAQ.tsx b/src/modules/home/FAQ.tsx
index bc9738673..caacc51eb 100644
--- a/src/modules/home/FAQ.tsx
+++ b/src/modules/home/FAQ.tsx
@@ -1,4 +1,4 @@
-import { Grid, Link, styled, Typography, useMediaQuery, useTheme } from "@material-ui/core"
+import { Grid, Link, styled, Typography, useMediaQuery, useTheme } from "@mui/material"
import React from "react"
import { Header } from "./Header"
import { ContentContainer } from "../explorer/components/ContentContainer"
@@ -44,7 +44,7 @@ const BodyTextGrid = styled(Grid)({
export const FAQ: React.FC = () => {
const theme = useTheme()
- const isExtraSmall = useMediaQuery(theme.breakpoints.down("xs"))
+ const isExtraSmall = useMediaQuery(theme.breakpoints.down("md"))
const faqList = useGenerateFAQ()
return (
diff --git a/src/modules/home/FAQItem.tsx b/src/modules/home/FAQItem.tsx
index 31eb43601..e2580a226 100644
--- a/src/modules/home/FAQItem.tsx
+++ b/src/modules/home/FAQItem.tsx
@@ -1,9 +1,9 @@
import React, { useEffect, useState } from "react"
-import { AccordionDetails, AccordionSummary, Grid, Typography } from "@material-ui/core"
-import ExpandMoreIcon from "@material-ui/icons/ExpandMore"
-import { styled } from "@material-ui/core/styles"
+import { AccordionDetails, AccordionSummary, Grid, Typography } from "@mui/material"
+import ExpandMoreIcon from "@mui/icons-material/ExpandMore"
+import { styled } from "@mui/material/styles"
import { ContentContainer } from "../explorer/components/ContentContainer"
-import Accordion from "@material-ui/core/Accordion"
+import Accordion from "@mui/material/Accordion"
import Markdown from "modules/common/Markdown"
import { useLocation } from "react-router-dom"
diff --git a/src/modules/home/Header.tsx b/src/modules/home/Header.tsx
index 601e71c1d..39b6c146c 100644
--- a/src/modules/home/Header.tsx
+++ b/src/modules/home/Header.tsx
@@ -1,4 +1,4 @@
-import { AppBar, Box, Button, Grid, Link, styled, Theme, Toolbar, Typography } from "@material-ui/core"
+import { AppBar, Box, Button, Grid, Link, styled, Theme, Toolbar, Typography } from "@mui/material"
import HomeButton from "assets/logos/homebase_logo.svg"
import hexToRgba from "hex-to-rgba"
import React from "react"
diff --git a/src/modules/home/Landing.tsx b/src/modules/home/Landing.tsx
index 360b82cc5..8ff6725bb 100644
--- a/src/modules/home/Landing.tsx
+++ b/src/modules/home/Landing.tsx
@@ -1,10 +1,10 @@
-import { Box, Grid, Link, styled, SvgIcon, Theme, Typography, useMediaQuery, useTheme } from "@material-ui/core"
+import { Box, Grid, Link, styled, SvgIcon, Theme, Typography, useMediaQuery, useTheme } from "@mui/material"
import React from "react"
import { Header } from "./LandingHeader"
import HomebaseLogo from "assets/logos/homebase_logo.svg"
import Vector1 from "assets/vectors/Vector1.svg"
import Vector2 from "assets/vectors/Vector2.svg"
-import GitHubIcon from "@material-ui/icons/GitHub"
+import GitHubIcon from "@mui/icons-material/GitHub"
import { ReactComponent as DiscordIcon } from "assets/logos/discord.svg"
import { MainButton } from "../common/MainButton"
import { EnvKey, getEnv } from "services/config"
@@ -56,7 +56,7 @@ const LogoContainer = styled(Box)(({ theme }) => ({
width: 408,
height: 370,
- [theme.breakpoints.down("xs")]: {
+ [theme.breakpoints.down("md")]: {
width: 290,
height: 265
}
@@ -82,7 +82,7 @@ const SubtitleText = styled(Typography)(({ theme }: { theme: Theme }) => ({
export const Landing: React.FC = () => {
const theme = useTheme()
- const isExtraSmall = useMediaQuery(theme.breakpoints.down("xs"))
+ const isExtraSmall = useMediaQuery(theme.breakpoints.down("md"))
return (
diff --git a/src/modules/home/LandingHeader.tsx b/src/modules/home/LandingHeader.tsx
index 2413386aa..da4d1c067 100644
--- a/src/modules/home/LandingHeader.tsx
+++ b/src/modules/home/LandingHeader.tsx
@@ -1,4 +1,4 @@
-import { AppBar, Box, Button, Grid, Link, styled, Theme, Toolbar, Typography } from "@material-ui/core"
+import { AppBar, Box, Button, Grid, Link, styled, Theme, Toolbar, Typography } from "@mui/material"
import HomeButton from "assets/logos/homebase_logo.svg"
import hexToRgba from "hex-to-rgba"
import { MainButton } from "../common/MainButton"
diff --git a/src/modules/lite/components/BackButton.tsx b/src/modules/lite/components/BackButton.tsx
index 1f393b820..6e7787aa6 100644
--- a/src/modules/lite/components/BackButton.tsx
+++ b/src/modules/lite/components/BackButton.tsx
@@ -1,6 +1,6 @@
import React from "react"
-import { Grid, Typography } from "@material-ui/core"
-import { ArrowBackIosOutlined } from "@material-ui/icons"
+import { Grid, Typography } from "@mui/material"
+import { ArrowBackIosOutlined } from "@mui/icons-material"
import { useHistory } from "react-router"
export const BackButton: React.FC<{ onClick?: () => void; disabled?: boolean }> = ({ onClick, disabled }) => {
diff --git a/src/modules/lite/components/GridContainer.tsx b/src/modules/lite/components/GridContainer.tsx
index eb51c41f1..8395661c0 100644
--- a/src/modules/lite/components/GridContainer.tsx
+++ b/src/modules/lite/components/GridContainer.tsx
@@ -1,4 +1,4 @@
-import { Grid, styled } from "@material-ui/core"
+import { Grid, styled } from "@mui/material"
export const GridContainer = styled(Grid)(({ theme }) => ({
minHeight: 145,
@@ -6,7 +6,7 @@ export const GridContainer = styled(Grid)(({ theme }) => ({
cursor: "pointer",
padding: "32px 46px",
background: theme.palette.primary.main,
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
padding: "35px 25px"
}
}))
diff --git a/src/modules/lite/components/LinearChart.tsx b/src/modules/lite/components/LinearChart.tsx
index db05baf95..4655680b5 100644
--- a/src/modules/lite/components/LinearChart.tsx
+++ b/src/modules/lite/components/LinearChart.tsx
@@ -1,4 +1,4 @@
-import { Box, Grid, Typography, styled } from "@material-ui/core"
+import { Box, Grid, Typography, styled } from "@mui/material"
import React from "react"
const chartColor = ["#FFC2CF", "#FFC839", "#62CEAE", "#DB6C6C", "#56CAE3", "#E99571", "#FF486E", "#3866F9", "#81FEB7"]
diff --git a/src/modules/lite/components/hooks/useNotification.tsx b/src/modules/lite/components/hooks/useNotification.tsx
index 4c9bc86d2..e304e658b 100644
--- a/src/modules/lite/components/hooks/useNotification.tsx
+++ b/src/modules/lite/components/hooks/useNotification.tsx
@@ -1,7 +1,7 @@
import React, { Fragment } from "react"
-import { Button, styled } from "@material-ui/core"
+import { Button, styled } from "@mui/material"
import { OptionsObject, useSnackbar } from "notistack"
-import { Close, OpenInNew } from "@material-ui/icons"
+import { Close, OpenInNew } from "@mui/icons-material"
import { ExternalLink } from "modules/common/ExternalLink"
const CloseIcon = styled(Close)({
diff --git a/src/modules/lite/creator/components/Plugins.tsx b/src/modules/lite/creator/components/Plugins.tsx
index 9e3da9894..36d37dd50 100644
--- a/src/modules/lite/creator/components/Plugins.tsx
+++ b/src/modules/lite/creator/components/Plugins.tsx
@@ -1,5 +1,5 @@
import React from "react"
-import { Button, Divider, Grid, styled, Typography } from "@material-ui/core"
+import { Button, Divider, Grid, styled, Typography } from "@mui/material"
const PluginsContainer = styled(Grid)(({ theme }) => ({
background: theme.palette.primary.main,
diff --git a/src/modules/lite/creator/components/UploadAvatar.tsx b/src/modules/lite/creator/components/UploadAvatar.tsx
index f6bba4492..901a18062 100644
--- a/src/modules/lite/creator/components/UploadAvatar.tsx
+++ b/src/modules/lite/creator/components/UploadAvatar.tsx
@@ -1,5 +1,5 @@
import React, { useState } from "react"
-import { Avatar, Grid, styled, Typography } from "@material-ui/core"
+import { Avatar, Grid, styled, Typography } from "@mui/material"
import { SmallButton } from "modules/common/SmallButton"
const AvatarCardContainer = styled(Grid)(({ theme }) => ({
@@ -16,7 +16,7 @@ const StyledAvatar = styled(Avatar)({
const AvatarContainer = styled(Grid)(({ theme }) => ({
marginTop: 70,
marginBottom: 30,
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
marginTop: 30
}
}))
diff --git a/src/modules/lite/creator/index.tsx b/src/modules/lite/creator/index.tsx
index 01225acc6..454bc03d7 100644
--- a/src/modules/lite/creator/index.tsx
+++ b/src/modules/lite/creator/index.tsx
@@ -7,16 +7,16 @@ import {
Checkbox,
useMediaQuery,
useTheme,
- withStyles,
- withTheme,
TextareaAutosize,
CircularProgress,
InputAdornment,
Tooltip
-} from "@material-ui/core"
+} from "@mui/material"
+import withStyles from "@mui/styles/withStyles"
+import withTheme from "@mui/styles/withTheme"
import { UploadAvatar } from "./components/UploadAvatar"
import { Field, Form, Formik, FormikErrors, getIn } from "formik"
-import { TextField as FormikTextField } from "formik-material-ui"
+import { TextField as FormikTextField } from "formik-mui"
import { Community } from "models/Community"
import { useHistory } from "react-router"
@@ -27,7 +27,7 @@ import { getEthSignature, getSignature, validateTokenAddress } from "services/ut
import { Navbar } from "modules/common/Toolbar"
import { SmallButton } from "modules/common/SmallButton"
import { saveLiteCommunity } from "services/services/lite/lite-services"
-import { InfoRounded } from "@material-ui/icons"
+import { InfoRounded } from "@mui/icons-material"
import CodeIcon from "@mui/icons-material/Code"
import CodeOffIcon from "@mui/icons-material/CodeOff"
import { ProposalCodeEditorInput } from "modules/explorer/components/ProposalFormInput"
@@ -58,7 +58,7 @@ const CodeOffButton = styled(CodeOffIcon)(({ theme }) => ({
const CommunityContainer = styled(Grid)(({ theme }) => ({
boxSizing: "border-box",
padding: "0px 15px",
- [theme.breakpoints.down("md")]: {
+ [theme.breakpoints.down("xl")]: {
marginTop: 0
}
}))
@@ -73,7 +73,7 @@ const InfoIconInput = styled(InfoRounded)(({ theme }) => ({
const AvatarCommunityContainer = styled(Grid)(({ theme }) => ({
boxSizing: "border-box",
padding: "0px 15px",
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
marginTop: 30
}
}))
@@ -81,7 +81,7 @@ const AvatarCommunityContainer = styled(Grid)(({ theme }) => ({
const CommunityContainerBottom = styled(Grid)(({ theme }) => ({
boxSizing: "border-box",
padding: "0px 15px",
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
marginTop: 30,
gap: 12
},
@@ -91,7 +91,7 @@ const CommunityContainerBottom = styled(Grid)(({ theme }) => ({
const TitleContainer = styled(Grid)(({ theme }) => ({
boxSizing: "border-box",
padding: "0px 15px",
- [theme.breakpoints.down("md")]: {
+ [theme.breakpoints.down("xl")]: {
marginTop: 0
},
marginBottom: 26
@@ -191,7 +191,7 @@ const CustomInputContainer = styled(Grid)(({ theme }) => ({
}))
const CheckboxContainer = styled(Grid)(({ theme }) => ({
- [theme.breakpoints.down("xs")]: {
+ [theme.breakpoints.down("md")]: {
maxWidth: "16.666667%",
flexBasis: "16.666667%"
},
@@ -221,7 +221,7 @@ const validateForm = (network: Network, values: Community) => {
const CommunityForm = ({ submitForm, values, setFieldValue, errors, touched, setFieldTouched, isSubmitting }: any) => {
const theme = useTheme()
const { isEtherlink } = useTezos()
- const isMobileSmall = useMediaQuery(theme.breakpoints.down("sm"))
+ const isMobileSmall = useMediaQuery(theme.breakpoints.down("lg"))
const { data: tokenMetadata, isLoading: loading, error } = useTokenMetadata(values?.tokenAddress)
console.log("TokenMetadata", tokenMetadata)
diff --git a/src/modules/lite/explorer/components/ChangeNetworkButton.tsx b/src/modules/lite/explorer/components/ChangeNetworkButton.tsx
index 9819a0791..85ec573cd 100644
--- a/src/modules/lite/explorer/components/ChangeNetworkButton.tsx
+++ b/src/modules/lite/explorer/components/ChangeNetworkButton.tsx
@@ -1,4 +1,4 @@
-import { Box, capitalize, Grid, styled, Typography, Theme } from "@material-ui/core"
+import { Box, capitalize, Grid, styled, Typography, Theme } from "@mui/material"
import React from "react"
import { useTezos } from "services/beacon/hooks/useTezos"
import { ActionSheet, useActionSheet } from "../context/ActionSheets"
@@ -21,12 +21,14 @@ const StyledConnectedButton = styled(Box)(({ theme }: { theme: Theme }) => ({
}
}))
-export const ColorDot = styled(Box)({
- height: 6,
- width: 6,
- backgroundColor: ({ color }: { color: string }) => color,
- borderRadius: "50%"
-})
+export const ColorDot = styled(Box, { shouldForwardProp: prop => prop !== "color" })(
+ ({ color }: { color: string }) => ({
+ height: 6,
+ width: 6,
+ backgroundColor: color,
+ borderRadius: "50%"
+ })
+)
const NetworkText = styled(Typography)({
fontSize: "14px"
diff --git a/src/modules/lite/explorer/components/ChoiceDetails.tsx b/src/modules/lite/explorer/components/ChoiceDetails.tsx
index cc4aa69b5..af2389e64 100644
--- a/src/modules/lite/explorer/components/ChoiceDetails.tsx
+++ b/src/modules/lite/explorer/components/ChoiceDetails.tsx
@@ -1,5 +1,5 @@
import React, { useEffect, useState } from "react"
-import { Grid, LinearProgress, styled, Typography } from "@material-ui/core"
+import { Grid, LinearProgress, styled, Typography } from "@mui/material"
import { Choice } from "models/Choice"
import { Poll } from "models/Polls"
import { calculateChoiceTotal, calculateWeight, nFormatter } from "services/lite/utils"
diff --git a/src/modules/lite/explorer/components/ChoiceItem.tsx b/src/modules/lite/explorer/components/ChoiceItem.tsx
index ffd814247..4f78b517a 100644
--- a/src/modules/lite/explorer/components/ChoiceItem.tsx
+++ b/src/modules/lite/explorer/components/ChoiceItem.tsx
@@ -1,7 +1,7 @@
import React, { Fragment } from "react"
import { Grid, Typography, IconButton, Divider } from "@mui/material"
import { theme } from "theme"
-import { RemoveCircleOutline } from "@material-ui/icons"
+import { RemoveCircleOutline } from "@mui/icons-material"
type ChoiceItemProps = {
index: number
diff --git a/src/modules/lite/explorer/components/ChoiceItemSelected.tsx b/src/modules/lite/explorer/components/ChoiceItemSelected.tsx
index 7a4546c71..db903b98b 100644
--- a/src/modules/lite/explorer/components/ChoiceItemSelected.tsx
+++ b/src/modules/lite/explorer/components/ChoiceItemSelected.tsx
@@ -1,5 +1,5 @@
import React, { useEffect } from "react"
-import { Button, Divider, Grid, styled, Theme, Typography, useMediaQuery, useTheme } from "@material-ui/core"
+import { Button, Divider, Grid, styled, Theme, Typography, useMediaQuery, useTheme } from "@mui/material"
import { Choice } from "models/Choice"
const StyledContainer = styled(Grid)(({ theme }: { theme: Theme }) => ({
@@ -29,7 +29,7 @@ export const ChoiceItemSelected: React.FC<{
multiple: boolean
}> = ({ choice, setSelectedVotes, votes, multiple }) => {
const theme = useTheme()
- const isMobileSmall = useMediaQuery(theme.breakpoints.down("sm"))
+ const isMobileSmall = useMediaQuery(theme.breakpoints.down("lg"))
const handleVotes = (choice: Choice) => {
if (multiple) {
diff --git a/src/modules/lite/explorer/components/Choices.tsx b/src/modules/lite/explorer/components/Choices.tsx
index 126bd6921..a3baf17b4 100644
--- a/src/modules/lite/explorer/components/Choices.tsx
+++ b/src/modules/lite/explorer/components/Choices.tsx
@@ -5,17 +5,17 @@ import {
Grid,
IconButton,
InputAdornment,
- makeStyles,
Radio,
styled,
Typography,
- useMediaQuery,
- withStyles
-} from "@material-ui/core"
+ useMediaQuery
+} from "@mui/material"
+import makeStyles from "@mui/styles/makeStyles"
+import withStyles from "@mui/styles/withStyles"
import { theme } from "theme"
-import { AddCircleOutline, DeleteTwoTone } from "@material-ui/icons"
+import { AddCircleOutline, DeleteTwoTone } from "@mui/icons-material"
import { FieldArray, Field } from "formik"
-import { TextField as FormikTextField } from "formik-material-ui"
+import { TextField as FormikTextField } from "formik-mui"
import { useDAOID } from "modules/explorer/pages/DAO/router"
import { useDAO } from "services/services/dao/hooks/useDAO"
import { useTokenVoteWeight } from "services/contracts/token/hooks/useTokenVoteWeight"
@@ -40,14 +40,14 @@ const ChoiceText = styled(Typography)(({ theme }) => ({
fontWeight: 300,
fontSize: 18,
marginLeft: 12,
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
fontSize: 16
}
}))
const VotingContainer = styled(Grid)(({ theme }) => ({
height: 80,
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
height: 120
}
}))
@@ -122,7 +122,7 @@ export const Choices: React.FC = ({
touched,
errors
}) => {
- const isMobileExtraSmall = useMediaQuery(theme.breakpoints.down("sm"))
+ const isMobileExtraSmall = useMediaQuery(theme.breakpoints.down("lg"))
const daoId = useDAOID()
const { data } = useDAO(daoId)
diff --git a/src/modules/lite/explorer/components/CommunityBadge.tsx b/src/modules/lite/explorer/components/CommunityBadge.tsx
index 7448c2dd0..030ae6e3c 100644
--- a/src/modules/lite/explorer/components/CommunityBadge.tsx
+++ b/src/modules/lite/explorer/components/CommunityBadge.tsx
@@ -1,5 +1,5 @@
import React from "react"
-import { Avatar, Grid, styled, Typography } from "@material-ui/core"
+import { Avatar, Grid, styled, Typography } from "@mui/material"
import { useCommunity } from "../hooks/useCommunity"
const StyledAvatar = styled(Avatar)({
diff --git a/src/modules/lite/explorer/components/ContentContainer.tsx b/src/modules/lite/explorer/components/ContentContainer.tsx
index b413b8d2e..073244baa 100644
--- a/src/modules/lite/explorer/components/ContentContainer.tsx
+++ b/src/modules/lite/explorer/components/ContentContainer.tsx
@@ -1,5 +1,5 @@
// TODO: Replace usage with components/ui/ContentContainer
-import { styled, Grid } from "@material-ui/core"
+import { styled, Grid } from "@mui/material"
export const ContentContainer = styled(Grid)(({ theme }) => ({
borderRadius: 8,
diff --git a/src/modules/lite/explorer/components/CreatorBadge.tsx b/src/modules/lite/explorer/components/CreatorBadge.tsx
index 30f3d9ea7..b923fb1b9 100644
--- a/src/modules/lite/explorer/components/CreatorBadge.tsx
+++ b/src/modules/lite/explorer/components/CreatorBadge.tsx
@@ -1,5 +1,5 @@
import React from "react"
-import { Grid, Typography, styled } from "@material-ui/core"
+import { Grid, Typography, styled } from "@mui/material"
import { Blockie } from "modules/common/Blockie"
import { toShortAddress } from "services/contracts/utils"
diff --git a/src/modules/lite/explorer/components/DaoCard.tsx b/src/modules/lite/explorer/components/DaoCard.tsx
index 59aa40df1..66ad7d0f6 100644
--- a/src/modules/lite/explorer/components/DaoCard.tsx
+++ b/src/modules/lite/explorer/components/DaoCard.tsx
@@ -1,5 +1,5 @@
import React, { useContext, useEffect, useState } from "react"
-import { Avatar, Button, Grid, styled, Typography } from "@material-ui/core"
+import { Avatar, Button, Grid, styled, Typography } from "@mui/material"
import { useHistory } from "react-router"
import { Community } from "models/Community"
import { useTezos } from "services/beacon/hooks/useTezos"
diff --git a/src/modules/lite/explorer/components/DaoCardDetail.tsx b/src/modules/lite/explorer/components/DaoCardDetail.tsx
index 22487a0ac..535bb46c7 100644
--- a/src/modules/lite/explorer/components/DaoCardDetail.tsx
+++ b/src/modules/lite/explorer/components/DaoCardDetail.tsx
@@ -1,4 +1,4 @@
-import { Avatar, Button, Grid, Link, styled, Typography, useMediaQuery, useTheme } from "@material-ui/core"
+import { Avatar, Button, Grid, Link, styled, Typography, useMediaQuery, useTheme } from "@mui/material"
import { Community } from "models/Community"
import React, { useCallback, useContext, useEffect, useState } from "react"
import { useHistory } from "react-router"
diff --git a/src/modules/lite/explorer/components/DownloadCsvFile.tsx b/src/modules/lite/explorer/components/DownloadCsvFile.tsx
index 48aea0a02..775e7774f 100644
--- a/src/modules/lite/explorer/components/DownloadCsvFile.tsx
+++ b/src/modules/lite/explorer/components/DownloadCsvFile.tsx
@@ -1,5 +1,5 @@
import React, { useEffect, useState } from "react"
-import { Button, Typography } from "@material-ui/core"
+import { Button, Typography } from "@mui/material"
import { ReactComponent as DownloadCSVIcon } from "assets/img/download_csv.svg"
import { Choice } from "models/Choice"
import { mkConfig, generateCsv, download } from "export-to-csv"
diff --git a/src/modules/lite/explorer/components/ProposalDetailCard.tsx b/src/modules/lite/explorer/components/ProposalDetailCard.tsx
index cf2811018..f600e8eb6 100644
--- a/src/modules/lite/explorer/components/ProposalDetailCard.tsx
+++ b/src/modules/lite/explorer/components/ProposalDetailCard.tsx
@@ -1,9 +1,10 @@
import React from "react"
-import { Grid, styled, Typography, Link, useTheme, useMediaQuery, Popover, withStyles } from "@material-ui/core"
+import { Grid, styled, Typography, Link, useTheme, useMediaQuery, Popover } from "@mui/material"
+import withStyles from "@mui/styles/withStyles"
import { GridContainer } from "modules/common/GridContainer"
import { ProposalStatus, TableStatusBadge } from "./ProposalTableRowStatusBadge"
import { CreatorBadge } from "./CreatorBadge"
-import { FileCopyOutlined } from "@material-ui/icons"
+import { FileCopyOutlined } from "@mui/icons-material"
import { Poll } from "models/Polls"
import dayjs from "dayjs"
import LinkIcon from "assets/img/link.svg"
@@ -25,7 +26,7 @@ const Subtitle = styled(Typography)(({ theme }) => ({
const LogoItem = styled("img")(({ theme }) => ({
cursor: "pointer",
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
height: 10
}
}))
@@ -39,7 +40,7 @@ const TextContainer = styled(Typography)(({ theme }) => ({
fontWeight: 300,
lineHeight: "160%" /* 28.8px */,
marginRight: 8,
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
marginTop: 20
}
}))
@@ -53,7 +54,7 @@ const EndTextContainer = styled(Typography)(({ theme }) => ({
color: theme.palette.primary.light,
gap: 10,
marginRight: 8,
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
marginTop: 20
}
}))
@@ -63,7 +64,7 @@ const EndText = styled(Typography)(({ theme }) => ({
fontSize: 18,
fontWeight: 300,
lineHeight: "160%" /* 28.8px */,
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
marginTop: 20
}
}))
@@ -75,7 +76,7 @@ const Divider = styled(Typography)(({ theme }) => ({
lineHeight: "160%" /* 28.8px */,
marginLeft: 8,
marginRight: 8,
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
marginTop: 20
}
}))
@@ -85,7 +86,7 @@ const StyledLink = styled(Link)(({ theme }) => ({
fontWeight: 300,
fontSize: 16,
marginLeft: 8,
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
fontWeight: 100,
fontSize: 10
}
@@ -129,7 +130,7 @@ const DescriptionText = styled(Typography)({
export const ProposalDetailCard: React.FC<{ poll: Poll | undefined; daoId: string }> = ({ poll, daoId }) => {
const theme = useTheme()
- const isMobileSmall = useMediaQuery(theme.breakpoints.down("sm"))
+ const isMobileSmall = useMediaQuery(theme.breakpoints.down("lg"))
const [anchorEl, setAnchorEl] = React.useState(null)
const openNotification = useNotification()
diff --git a/src/modules/lite/explorer/components/ProposalList.tsx b/src/modules/lite/explorer/components/ProposalList.tsx
index 403cb0f20..585227be0 100644
--- a/src/modules/lite/explorer/components/ProposalList.tsx
+++ b/src/modules/lite/explorer/components/ProposalList.tsx
@@ -1,6 +1,6 @@
/* eslint-disable react-hooks/exhaustive-deps */
import React, { useEffect, useMemo, useState } from "react"
-import { Divider, Grid, Typography, styled, useTheme, useMediaQuery } from "@material-ui/core"
+import { Divider, Grid, Typography, styled, useTheme, useMediaQuery } from "@mui/material"
import { ProposalTableRow } from "./ProposalTableRow"
import { ProposalStatus } from "./ProposalTableRowStatusBadge"
import { Poll } from "models/Polls"
@@ -33,7 +33,7 @@ const NoProposalsText = styled(Typography)({
})
const Title = styled(Typography)(({ theme }) => ({
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
marginBottom: 14,
fontSize: 16,
marginLeft: -2
@@ -53,7 +53,7 @@ export const ProposalList: React.FC<{ polls: Poll[]; id: string | undefined; dao
const { pathname } = useLocation()
const theme = useTheme()
- const isMobileSmall = useMediaQuery(theme.breakpoints.down("sm"))
+ const isMobileSmall = useMediaQuery(theme.breakpoints.down("lg"))
const shouldShowBar = pathname.includes("/lite") ? true : false
useEffect(() => {
diff --git a/src/modules/lite/explorer/components/ProposalTableRow.tsx b/src/modules/lite/explorer/components/ProposalTableRow.tsx
index 41a3bd456..67febb446 100644
--- a/src/modules/lite/explorer/components/ProposalTableRow.tsx
+++ b/src/modules/lite/explorer/components/ProposalTableRow.tsx
@@ -1,5 +1,5 @@
import React from "react"
-import { styled, Grid, Typography, useTheme, useMediaQuery } from "@material-ui/core"
+import { styled, Grid, Typography, useTheme, useMediaQuery } from "@mui/material"
import { RowContainer } from "./tables/RowContainer"
import { ProposalStatus, TableStatusBadge } from "./ProposalTableRowStatusBadge"
import { useHistory } from "react-router"
@@ -16,7 +16,7 @@ const ArrowInfo = styled(Typography)(({ theme }) => ({
fontWeight: 300,
fontSize: 16,
color: "#bfc5ca",
- [theme.breakpoints.down("xs")]: {
+ [theme.breakpoints.down("md")]: {
marginTop: 5
}
}))
@@ -32,7 +32,7 @@ const DescriptionText = styled(Typography)(({ theme }) => ({
width: "inherit",
color: "#BFC5CA",
wordBreak: "break-word",
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
fontSize: 16
}
}))
@@ -46,8 +46,8 @@ const stripHtmlTags = (input: string) => {
export const ProposalTableRow: React.FC<{ poll: Poll | any; daoId?: string }> = ({ poll, daoId }) => {
const navigate = useHistory()
const theme = useTheme()
- const isMobile = useMediaQuery(theme.breakpoints.down("xs"))
- const isMobileSmall = useMediaQuery(theme.breakpoints.down("sm"))
+ const isMobile = useMediaQuery(theme.breakpoints.down("md"))
+ const isMobileSmall = useMediaQuery(theme.breakpoints.down("lg"))
if (poll.createdAt) poll.startTime = poll.createdAt
console.log({ poll })
return (
diff --git a/src/modules/lite/explorer/components/ProposalTableRowStatusBadge.tsx b/src/modules/lite/explorer/components/ProposalTableRowStatusBadge.tsx
index e0ca21bc0..a76ed2e71 100644
--- a/src/modules/lite/explorer/components/ProposalTableRowStatusBadge.tsx
+++ b/src/modules/lite/explorer/components/ProposalTableRowStatusBadge.tsx
@@ -1,6 +1,6 @@
import React from "react"
-import { Grid, GridProps, Typography } from "@material-ui/core"
-import { styled, Theme } from "@material-ui/core/styles"
+import { Grid, GridProps, Typography } from "@mui/material"
+import { styled, Theme } from "@mui/material/styles"
import hexToRgba from "hex-to-rgba"
import { theme } from "theme"
diff --git a/src/modules/lite/explorer/components/VoteDetails.tsx b/src/modules/lite/explorer/components/VoteDetails.tsx
index c3a046644..edf8090b5 100644
--- a/src/modules/lite/explorer/components/VoteDetails.tsx
+++ b/src/modules/lite/explorer/components/VoteDetails.tsx
@@ -1,7 +1,7 @@
/* eslint-disable @typescript-eslint/no-non-null-asserted-optional-chain */
/* eslint-disable @typescript-eslint/no-non-null-assertion */
import React, { useMemo, useState } from "react"
-import { Grid, LinearProgress, styled, Typography, useMediaQuery, useTheme } from "@material-ui/core"
+import { Grid, LinearProgress, styled, Typography, useMediaQuery, useTheme } from "@mui/material"
import { GridContainer } from "modules/common/GridContainer"
import { VotesDialog } from "./VotesDialog"
import { Poll } from "models/Polls"
@@ -50,7 +50,7 @@ const TitleContainer = styled(Grid)(({ theme }) => ({
borderRadius: 8,
marginTop: 20,
gap: 32,
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
padding: "18px 25px"
}
}))
@@ -80,8 +80,8 @@ export const VoteDetails: React.FC<{
isXTZ: boolean
}> = ({ poll, choices, token, communityId, isXTZ }) => {
const theme = useTheme()
- const isMobileSmall = useMediaQuery(theme.breakpoints.down("xs"))
- const isMobile = useMediaQuery(theme.breakpoints.down("sm"))
+ const isMobileSmall = useMediaQuery(theme.breakpoints.down("md"))
+ const isMobile = useMediaQuery(theme.breakpoints.down("lg"))
const [open, setOpen] = React.useState(false)
const { network } = useTezos()
const [turnout, setTurnout] = useState()
diff --git a/src/modules/lite/explorer/components/VotesDialog.tsx b/src/modules/lite/explorer/components/VotesDialog.tsx
index bff15731d..25c7d2677 100644
--- a/src/modules/lite/explorer/components/VotesDialog.tsx
+++ b/src/modules/lite/explorer/components/VotesDialog.tsx
@@ -12,9 +12,9 @@ import {
TableRow,
TableHead,
TableCell
-} from "@material-ui/core"
+} from "@mui/material"
import { toShortAddress } from "services/contracts/utils"
-import { FileCopyOutlined } from "@material-ui/icons"
+import { FileCopyOutlined } from "@mui/icons-material"
import { Choice } from "models/Choice"
import { getTotalVoters } from "services/lite/utils"
import { useNotification } from "modules/common/hooks/useNotification"
@@ -29,7 +29,7 @@ const CustomContent = styled(DialogContent)(({ theme }) => ({
padding: 0,
display: "grid",
marginTop: 24,
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
marginTop: 0,
display: "inline",
paddingTop: "0px !important"
@@ -39,7 +39,7 @@ const CustomContent = styled(DialogContent)(({ theme }) => ({
const CustomDialogActions = styled(DialogActions)(({ theme }) => ({
justifyContent: "flex-end !important",
paddingBottom: 20,
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
marginTop: 46
}
}))
@@ -73,7 +73,7 @@ const VotesRow = styled(Typography)(({ theme }) => ({
textOverflow: "ellipsis",
padding: ".5rem 1rem",
width: 400,
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
width: 200,
textAlign: "center"
}
@@ -123,7 +123,7 @@ export const VotesDialog: React.FC<{
const openNotification = useNotification()
const theme = useTheme()
- const isMobileSmall = useMediaQuery(theme.breakpoints.down("sm"))
+ const isMobileSmall = useMediaQuery(theme.breakpoints.down("lg"))
const [currentPage, setCurrentPage] = useState(0)
const [offset, setOffset] = useState(0)
const pageCount = Math.ceil(groupedVotes ? groupedVotes.length / 4 : 0)
diff --git a/src/modules/lite/explorer/components/styled/ErrorText.tsx b/src/modules/lite/explorer/components/styled/ErrorText.tsx
index 23bc010b4..2d783d726 100644
--- a/src/modules/lite/explorer/components/styled/ErrorText.tsx
+++ b/src/modules/lite/explorer/components/styled/ErrorText.tsx
@@ -1,4 +1,4 @@
-import { styled, Typography } from "@material-ui/core"
+import { styled, Typography } from "@mui/material"
export const ErrorText = styled(Typography)({
fontSize: 14,
diff --git a/src/modules/lite/explorer/components/styled/HighlightedBadge.tsx b/src/modules/lite/explorer/components/styled/HighlightedBadge.tsx
index f9a6166ef..80aa9272a 100644
--- a/src/modules/lite/explorer/components/styled/HighlightedBadge.tsx
+++ b/src/modules/lite/explorer/components/styled/HighlightedBadge.tsx
@@ -1,4 +1,4 @@
-import { styled, Grid } from "@material-ui/core"
+import { styled, Grid } from "@mui/material"
import hexToRgba from "hex-to-rgba"
export const HighlightedBadge = styled(Grid)(({ theme }) => ({
diff --git a/src/modules/lite/explorer/components/styled/InfoIcon.tsx b/src/modules/lite/explorer/components/styled/InfoIcon.tsx
index 0b46585b1..a68de9b3d 100644
--- a/src/modules/lite/explorer/components/styled/InfoIcon.tsx
+++ b/src/modules/lite/explorer/components/styled/InfoIcon.tsx
@@ -1,5 +1,5 @@
-import { styled } from "@material-ui/core"
-import { InfoOutlined } from "@material-ui/icons"
+import { styled } from "@mui/material"
+import { InfoOutlined } from "@mui/icons-material"
export const InfoIcon = styled(InfoOutlined)({
cursor: "default",
diff --git a/src/modules/lite/explorer/components/styled/ProfileAvatar.tsx b/src/modules/lite/explorer/components/styled/ProfileAvatar.tsx
index 6fcc59452..fbc5c3423 100644
--- a/src/modules/lite/explorer/components/styled/ProfileAvatar.tsx
+++ b/src/modules/lite/explorer/components/styled/ProfileAvatar.tsx
@@ -1,5 +1,5 @@
import React from "react"
-import { Avatar, styled } from "@material-ui/core"
+import { Avatar, styled } from "@mui/material"
import { Blockie } from "modules/common/Blockie"
import { useProfileClaim } from "services/tzprofiles/hooks/useProfileClaim"
diff --git a/src/modules/lite/explorer/components/styled/RectangleHeader.tsx b/src/modules/lite/explorer/components/styled/RectangleHeader.tsx
index dfa502429..fce04f7cc 100644
--- a/src/modules/lite/explorer/components/styled/RectangleHeader.tsx
+++ b/src/modules/lite/explorer/components/styled/RectangleHeader.tsx
@@ -1,10 +1,10 @@
-import { Grid, styled } from "@material-ui/core"
+import { Grid, styled } from "@mui/material"
export const RectangleContainer = styled(Grid)(({ theme }) => ({
minHeight: 125,
padding: "68px 8%",
borderBottom: `2px solid ${theme.palette.primary.light}`,
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
padding: "35px 8%"
}
}))
diff --git a/src/modules/lite/explorer/components/styled/TableHeader.tsx b/src/modules/lite/explorer/components/styled/TableHeader.tsx
index 8f0ec5da0..fdc5d90d0 100644
--- a/src/modules/lite/explorer/components/styled/TableHeader.tsx
+++ b/src/modules/lite/explorer/components/styled/TableHeader.tsx
@@ -1,4 +1,4 @@
-import { styled, Grid } from "@material-ui/core"
+import { styled, Grid } from "@mui/material"
export const TableHeader = styled(Grid)(({ theme }) => ({
borderBottom: `2px solid ${theme.palette.primary.light}`,
diff --git a/src/modules/lite/explorer/components/tables/RowContainer.tsx b/src/modules/lite/explorer/components/tables/RowContainer.tsx
index 3a962f8e9..8041a01fe 100644
--- a/src/modules/lite/explorer/components/tables/RowContainer.tsx
+++ b/src/modules/lite/explorer/components/tables/RowContainer.tsx
@@ -1,11 +1,11 @@
-import { Grid, styled } from "@material-ui/core"
+import { Grid, styled } from "@mui/material"
export const RowContainer = styled(Grid)(({ theme }) => ({
minHeight: 192,
padding: "37px 48px",
cursor: "pointer",
width: "inherit",
- [theme.breakpoints.down("md")]: {
+ [theme.breakpoints.down("xl")]: {
padding: "34px 38px",
width: "inherit"
}
diff --git a/src/modules/lite/explorer/pages/CommunityDetails/index.tsx b/src/modules/lite/explorer/pages/CommunityDetails/index.tsx
index f5abe3611..dd968d68d 100644
--- a/src/modules/lite/explorer/pages/CommunityDetails/index.tsx
+++ b/src/modules/lite/explorer/pages/CommunityDetails/index.tsx
@@ -1,6 +1,6 @@
/* eslint-disable react-hooks/exhaustive-deps */
import React, { useEffect, useState } from "react"
-import { Grid, styled, CircularProgress, Typography } from "@material-ui/core"
+import { Grid, styled, CircularProgress, Typography } from "@mui/material"
import { ProposalList } from "../../components/ProposalList"
import { DaoCardDetail } from "../../components/DaoCardDetail"
import { usePolls } from "../../hooks/usePolls"
@@ -10,7 +10,7 @@ import { useTezos } from "services/beacon/hooks/useTezos"
const CommunityDetailsContainer = styled(Grid)(({ theme }) => ({
boxSizing: "border-box",
height: "fit-content",
- [theme.breakpoints.down("md")]: {
+ [theme.breakpoints.down("xl")]: {
marginTop: 0
}
}))
diff --git a/src/modules/lite/explorer/pages/CreateProposal/components/ProposalForm.tsx b/src/modules/lite/explorer/pages/CreateProposal/components/ProposalForm.tsx
index 80c84b99d..7807571f4 100644
--- a/src/modules/lite/explorer/pages/CreateProposal/components/ProposalForm.tsx
+++ b/src/modules/lite/explorer/pages/CreateProposal/components/ProposalForm.tsx
@@ -6,7 +6,7 @@ import { Choices } from "../../../components/Choices"
const ProposalContainer = styled(Grid)(({ theme }) => ({
boxSizing: "border-box",
padding: "0px 15px",
- [theme.breakpoints.down("md")]: {
+ [theme.breakpoints.down("xl")]: {
marginTop: 30
}
}))
diff --git a/src/modules/lite/explorer/pages/CreateProposal/index.tsx b/src/modules/lite/explorer/pages/CreateProposal/index.tsx
index 3a7298d63..5579b649f 100644
--- a/src/modules/lite/explorer/pages/CreateProposal/index.tsx
+++ b/src/modules/lite/explorer/pages/CreateProposal/index.tsx
@@ -1,22 +1,15 @@
/* eslint-disable @typescript-eslint/no-non-null-assertion */
/* eslint-disable react-hooks/exhaustive-deps */
import React, { useCallback, useState } from "react"
-import {
- Grid,
- styled,
- Typography,
- withStyles,
- withTheme,
- TextareaAutosize,
- useTheme,
- useMediaQuery,
- Tooltip
-} from "@material-ui/core"
+import { Grid, styled, Typography, TextareaAutosize, useTheme, useMediaQuery, Tooltip } from "@mui/material"
+
+import withStyles from "@mui/styles/withStyles"
+import withTheme from "@mui/styles/withTheme"
import { Choices } from "../../components/Choices"
import { useHistory, useLocation } from "react-router-dom"
import { Field, Form, Formik, FormikErrors, getIn } from "formik"
-import { TextField as FormikTextField, Switch } from "formik-material-ui"
+import { TextField as FormikTextField, Switch } from "formik-mui"
import { Poll } from "models/Polls"
import { useTezos } from "services/beacon/hooks/useTezos"
import { getSignature } from "services/lite/utils"
@@ -42,7 +35,7 @@ dayjs.extend(duration)
const ProposalContainer = styled(Grid)(({ theme }) => ({
boxSizing: "border-box",
- [theme.breakpoints.down("md")]: {
+ [theme.breakpoints.down("xl")]: {
marginTop: 30
}
}))
@@ -147,7 +140,7 @@ const PageContainer = styled("div")({
})
const Header = styled(Grid)(({ theme }) => ({
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
marginBottom: 6
}
}))
@@ -160,7 +153,7 @@ const LabelText = styled(Typography)(({ theme }) => ({
fontWeight: 300,
fontSize: 18,
color: "#bfc5ca",
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
fontSize: 16
}
}))
@@ -234,7 +227,7 @@ const TimeBox = styled(Grid)(({ theme }) => ({
width: 72,
minHeight: 59,
display: "grid",
- [theme.breakpoints.down("sm")]: {
+ [theme.breakpoints.down("lg")]: {
"width": 172,
"& input": {
marginLeft: "30%"
@@ -252,7 +245,7 @@ const TimeContainerMobile = styled(Grid)(({ theme }) => ({
alignItems: "baseline",
marginTop: 0,
gap: 10,
- [theme.breakpoints.down("md")]: {
+ [theme.breakpoints.down("xl")]: {
marginTop: 30,
display: "grid"
}
@@ -336,7 +329,7 @@ export const ProposalForm = ({
}: any) => {
const theme = useTheme()
const community = useCommunity(daoId)
- const isMobileSmall = useMediaQuery(theme.breakpoints.down("sm"))
+ const isMobileSmall = useMediaQuery(theme.breakpoints.down("lg"))
const finalDate = calculateEndTime(
getIn(values, "endTimeDays"),
getIn(values, "endTimeHours"),
diff --git a/src/modules/lite/explorer/pages/ProposalDetails/index.tsx b/src/modules/lite/explorer/pages/ProposalDetails/index.tsx
index 1cab9b6b9..521308d36 100644
--- a/src/modules/lite/explorer/pages/ProposalDetails/index.tsx
+++ b/src/modules/lite/explorer/pages/ProposalDetails/index.tsx
@@ -1,5 +1,5 @@
import React, { useEffect, useState } from "react"
-import { CircularProgress, Grid, Typography, styled, useMediaQuery, useTheme } from "@material-ui/core"
+import { CircularProgress, Grid, Typography, styled, useMediaQuery, useTheme } from "@mui/material"
import { ProposalDetailCard } from "../../components/ProposalDetailCard"
import { GridContainer } from "modules/common/GridContainer"
import { ChoiceItemSelected } from "../../components/ChoiceItemSelected"
@@ -18,7 +18,7 @@ import { voteOnLiteProposal } from "services/services/lite/lite-services"
import { useDAO } from "services/services/dao/hooks/useDAO"
import { useTokenVoteWeight } from "services/contracts/token/hooks/useTokenVoteWeight"
import BigNumber from "bignumber.js"
-import { ArrowBackIosOutlined } from "@material-ui/icons"
+import { ArrowBackIosOutlined } from "@mui/icons-material"
import { useIsMember } from "../../hooks/useIsMember"
import { useHistoryLength } from "modules/explorer/context/HistoryLength"
import { getEthSignature } from "services/utils/utils"
@@ -68,7 +68,7 @@ export const ProposalDetails: React.FC<{ id: string }> = ({ id }) => {
const theme = useTheme()
const historyLength = useHistoryLength()
- const isMobileSmall = useMediaQuery(theme.breakpoints.down("sm"))
+ const isMobileSmall = useMediaQuery(theme.breakpoints.down("lg"))
const navigate = useHistory()
const { network, account, wallet, etherlink } = useTezos()
const openNotification = useNotification()
diff --git a/src/modules/lite/explorer/router.tsx b/src/modules/lite/explorer/router.tsx
index 2f72b6feb..3caa4d109 100644
--- a/src/modules/lite/explorer/router.tsx
+++ b/src/modules/lite/explorer/router.tsx
@@ -2,7 +2,7 @@ import React from "react"
import { Switch, Route, Redirect, useRouteMatch } from "react-router"
import { CommunityDetailsRouter } from "./pages/CommunityDetails/router"
import { useParams } from "react-router-dom"
-import { Grid, styled } from "@material-ui/core"
+import { Grid, styled } from "@mui/material"
import { Navbar as ExplorerNavbar } from "modules/explorer/components/Toolbar"
import { Navbar } from "modules/common/Toolbar"
diff --git a/src/services/beacon/utils.ts b/src/services/beacon/utils.ts
index 1f33d7c17..0178e39cc 100644
--- a/src/services/beacon/utils.ts
+++ b/src/services/beacon/utils.ts
@@ -1,5 +1,5 @@
import { NetworkType } from "@ecadlabs/beacon-types"
-import { capitalize } from "@material-ui/core"
+import { capitalize } from "@mui/material"
import { BeaconWallet } from "@taquito/beacon-wallet"
import { MichelCodecPacker, TezosToolkit } from "@taquito/taquito"
import { Tzip16Module } from "@taquito/tzip16"
diff --git a/src/theme/index.ts b/src/theme/index.ts
index 7cc000537..0c4549040 100644
--- a/src/theme/index.ts
+++ b/src/theme/index.ts
@@ -1,507 +1,503 @@
-import { createTheme } from "@material-ui/core/styles"
-import { ThemeOptions } from "@material-ui/core/styles/createTheme"
+import { createTheme, adaptV4Theme, DeprecatedThemeOptions } from "@mui/material/styles"
const defaultTheme = createTheme()
const { breakpoints } = defaultTheme
-export const theme = createTheme({
- props: {
- MuiButtonBase: {
- disableRipple: true
- }
- },
- palette: {
- type: "dark",
- primary: {
- main: "#2F3438",
- dark: "#1C1F23",
- light: "#bfc5ca",
- contrastText: "#24282d"
- },
- secondary: {
- main: "#81FEB7",
- dark: "#6AE9A720",
- contrastText: "#1C1F23",
- light: "#24282D"
- },
- text: {
- primary: "#FDFDFD"
- },
- error: {
- main: "#ED254E"
- },
- info: {
- main: "#3866F9"
- },
- warning: {
- main: "#FFC839"
- }
- },
- typography: {
- fontFamily: "Roboto Flex",
- h1: {
- fontSize: 30,
- [breakpoints.down("xs")]: {
- fontSize: 22
- }
- },
- subtitle1: {
- fontSize: 32,
- [breakpoints.down("xs")]: {
- fontSize: 26
- }
- },
- subtitle2: {
- fontSize: 16,
- fontWeight: 300
- },
- h3: {
- fontSize: 21,
- fontWeight: 400
- },
- h2: {
- fontSize: 24
- },
- h4: {
- fontSize: 21,
- [breakpoints.down("xs")]: {
- fontSize: 16
- }
- },
- h5: {
- fontSize: 35,
- [breakpoints.down("xs")]: {
- fontSize: 21
- }
- },
- body1: {
- fontSize: 18,
- [breakpoints.down("xs")]: {
- fontSize: 16
+export const theme = createTheme(
+ adaptV4Theme({
+ props: {
+ MuiButtonBase: {
+ disableRipple: true
+ }
+ },
+ palette: {
+ mode: "dark",
+ primary: {
+ main: "#2F3438",
+ dark: "#1C1F23",
+ light: "#bfc5ca",
+ contrastText: "#24282d"
+ },
+ secondary: {
+ main: "#81FEB7",
+ dark: "#6AE9A720",
+ contrastText: "#1C1F23",
+ light: "#24282D"
+ },
+ text: {
+ primary: "#FDFDFD"
+ },
+ error: {
+ main: "#ED254E"
+ },
+ info: {
+ main: "#3866F9"
+ },
+ warning: {
+ main: "#FFC839"
}
},
- body2: {
- fontSize: 16,
- [breakpoints.down("xs")]: {
+ typography: {
+ fontFamily: "Roboto Flex",
+ h1: {
+ fontSize: 30,
+ [breakpoints.down("xs")]: {
+ fontSize: 22
+ }
+ },
+ subtitle1: {
+ fontSize: 32,
+ [breakpoints.down("xs")]: {
+ fontSize: 26
+ }
+ },
+ subtitle2: {
+ fontSize: 16,
+ fontWeight: 300
+ },
+ h3: {
+ fontSize: 21,
+ fontWeight: 400
+ },
+ h2: {
+ fontSize: 24
+ },
+ h4: {
+ fontSize: 21,
+ [breakpoints.down("xs")]: {
+ fontSize: 16
+ }
+ },
+ h5: {
+ fontSize: 35,
+ [breakpoints.down("xs")]: {
+ fontSize: 21
+ }
+ },
+ body1: {
+ fontSize: 18,
+ [breakpoints.down("xs")]: {
+ fontSize: 16
+ }
+ },
+ body2: {
+ fontSize: 16,
+ [breakpoints.down("xs")]: {
+ fontSize: 14
+ }
+ },
+ h6: {
fontSize: 14
}
},
- h6: {
- fontSize: 14
- }
- },
- overrides: {
- MuiSvgIcon: {
- root: {
- color: "#fff"
- },
- colorSecondary: {
- color: "#81FEB7 !important"
- }
- },
- MuiTypography: {
- root: {
- letterSpacing: "-0.03em !important"
- }
- },
- MuiMenu: {
- paper: {
- backgroundColor: "#2f3438",
- zIndex: 1000002,
- pointerEvents: "auto"
- }
- },
- MuiMenuItem: {
- root: {
- pointerEvents: "auto"
- }
- },
- MuiListItem: {
- root: {
- pointerEvents: "auto"
- }
- },
- MuiSlider: {
- root: {
- color: "#3D3D3D"
- }
- },
- MuiTab: {
- root: {
- maxWidth: "100%"
- }
- },
- MuiTooltip: {
- tooltip: {
- backgroundColor: "#62eda5",
- fontSize: 14,
- padding: "10px 15px",
- color: "#1C1F23"
- }
- },
- MuiStepLabel: {
- label: {
- "cursor": "pointer",
- "color": "#FDFDFD",
- "opacity": 0.5,
- "marginLeft": 15,
- "lineHeight": "40px",
- "&$completed": {
- fontWeight: 300
+ overrides: {
+ MuiSvgIcon: {
+ root: {
+ color: "#fff"
},
- "&$active": {
- fontWeight: 300
+ colorSecondary: {
+ color: "#81FEB7 !important"
+ }
+ },
+ MuiTypography: {
+ root: {
+ letterSpacing: "-0.03em !important"
+ }
+ },
+ MuiMenu: {
+ paper: {
+ backgroundColor: "#2f3438",
+ zIndex: 1000002,
+ pointerEvents: "auto"
+ }
+ },
+ MuiMenuItem: {
+ root: {
+ pointerEvents: "auto"
+ }
+ },
+ MuiListItem: {
+ root: {
+ pointerEvents: "auto"
+ }
+ },
+ MuiSlider: {
+ root: {
+ color: "#3D3D3D"
+ }
+ },
+ MuiTab: {
+ root: {
+ maxWidth: "100%"
+ }
+ },
+ MuiTooltip: {
+ tooltip: {
+ backgroundColor: "#62eda5",
+ fontSize: 14,
+ padding: "10px 15px",
+ color: "#1C1F23"
+ }
+ },
+ MuiStepLabel: {
+ label: {
+ "cursor": "pointer",
+ "color": "#FDFDFD",
+ "opacity": 0.5,
+ "marginLeft": 15,
+ "lineHeight": "40px",
+ "&$completed": {
+ fontWeight: 300
+ },
+ "&$active": {
+ fontWeight: 300
+ },
+ "& .MuiStepLabel-completed": {
+ fontWeight: 300
+ }
},
- "& .MuiStepLabel-completed": {
+ active: {
+ color: "#FDFDFD !important",
+ opacity: 1
+ },
+ completed: {
+ color: "#FDFDFD !important",
+ opacity: 0.5,
fontWeight: 300
}
},
- active: {
- color: "#FDFDFD !important",
- opacity: 1
+ MuiStepConnector: {
+ lineVertical: {
+ display: "none"
+ }
},
- completed: {
- color: "#FDFDFD !important",
- opacity: 0.5,
- fontWeight: 300
- }
- },
- MuiStepConnector: {
- lineVertical: {
- display: "none"
- }
- },
- MuiStepContent: {
- root: {
- borderLeft: "none"
- }
- },
- MuiStep: {
- root: {
- marginBottom: 15
- }
- },
- MuiStepIcon: {
- active: {
- color: "#1C1F23 !important"
- },
- completed: {
- color: "#FDFDFD !important"
- },
- root: {
- "height": 32,
- "width": 32,
- "color": "#1C1F23",
- "border": "1px solid #3D3D3D",
- "borderRadius": "50%",
- "&$active": {
- "fill": "#FDFDFD",
+ MuiStepContent: {
+ root: {
+ borderLeft: "none"
+ }
+ },
+ MuiStep: {
+ root: {
+ marginBottom: 15
+ }
+ },
+ MuiStepIcon: {
+ active: {
+ color: "#1C1F23 !important"
+ },
+ completed: {
+ color: "#FDFDFD !important"
+ },
+ root: {
+ "height": 32,
+ "width": 32,
+ "color": "#1C1F23",
"border": "1px solid #3D3D3D",
"borderRadius": "50%",
- "& $text": {
- fill: "#1C1F23",
- border: "1px solid #3D3D3D"
+ "&$active": {
+ "fill": "#FDFDFD",
+ "border": "1px solid #3D3D3D",
+ "borderRadius": "50%",
+ "& $text": {
+ fill: "#1C1F23",
+ border: "1px solid #3D3D3D"
+ }
}
+ },
+ text: {
+ fill: "#FDFDFD"
}
},
- text: {
- fill: "#FDFDFD"
- }
- },
- MuiIconButton: {
- colorSecondary: {
- "&:hover": {
- background: "inherit !important"
+ MuiIconButton: {
+ colorSecondary: {
+ "&:hover": {
+ background: "inherit !important"
+ }
}
- }
- },
- MuiInput: {
- underline: {
- "&:after": {
- borderBottom: "none"
- },
- "&$focused:after": {
- borderBottom: "none"
+ },
+ MuiInput: {
+ underline: {
+ "&:after": {
+ borderBottom: "none"
+ },
+ "&$focused:after": {
+ borderBottom: "none"
+ },
+ "&$error:after": {
+ borderBottom: "none"
+ },
+ "&:before": {
+ borderBottom: "none",
+ transition: "none"
+ },
+ "&:hover:not($disabled):not($focused):not($error):before": {
+ borderBottom: "none"
+ },
+ "&$disabled:before": {
+ borderBottom: "none"
+ },
+ "&:active:not($disabled):not($focused):not($error):before": {
+ borderBottom: "none"
+ }
+ }
+ },
+
+ MuiButton: {
+ root: {
+ "textTransform": "capitalize",
+ "fontWeight": 500,
+ "fontSize": 18,
+ "padding": "3px 14px",
+ "letterSpacing": "-0.03em",
+ "boxShadow": "none",
+
+ "&:hover": {
+ boxShadow: "none"
+ },
+
+ "&$disabled": {
+ color: "#2F3438 !important",
+ background: "#41484d !important"
+ }
},
- "&$error:after": {
- borderBottom: "none"
+ outlined: {
+ "&$disabled": {
+ border: "2px solid #3d3d3d"
+ },
+ "borderWidth": "2px !important",
+ "borderRadius": "4px",
+ "padding": "1px 8px",
+ "fontSize": "1rem"
},
- "&:before": {
- borderBottom: "none",
- transition: "none"
+ disabled: {},
+ text: {
+ "color": "#81FEB7",
+ "&$disabled": {
+ color: "#bfc5ca !important",
+ background: "inherit !important"
+ }
},
- "&:hover:not($disabled):not($focused):not($error):before": {
- borderBottom: "none"
+ containedSecondary: {
+ backgroundColor: "#4ed092"
+ }
+ },
+ MuiInputBase: {
+ input: {
+ textAlign: "center",
+ color: "#FDFDFD"
+ }
+ },
+ MuiRadio: {
+ root: {
+ color: "#FDFDFD"
+ }
+ },
+ MuiDivider: {
+ root: {
+ marginTop: 16,
+ marginBottom: 16
+ }
+ },
+ MuiDialog: {
+ paper: {
+ background: "#1C1F23",
+ width: 615,
+ maxWidth: "100%"
},
- "&$disabled:before": {
- borderBottom: "none"
+ root: {
+ height: "auto"
},
- "&:active:not($disabled):not($focused):not($error):before": {
- borderBottom: "none"
+ paperWidthSm: {
+ maxWidth: 615,
+ height: "auto"
}
- }
- },
-
- MuiButton: {
- root: {
- "textTransform": "capitalize",
- "fontWeight": 500,
- "fontSize": 18,
- "padding": "3px 14px",
- "letterSpacing": "-0.03em",
- "boxShadow": "none",
-
- "&:hover": {
- boxShadow: "none"
+ },
+ MuiFormControl: {
+ root: {
+ width: "100%"
+ }
+ },
+ MuiDialogContent: {
+ root: {
+ "padding": "42px 54px",
+ "&:first-child": {
+ paddingTop: "42px"
+ }
+ }
+ },
+ MuiSelect: {
+ select: {
+ textAlign: "right",
+ textTransform: "capitalize"
},
-
- "&$disabled": {
- color: "#2F3438 !important",
- background: "#41484d !important"
+ icon: {
+ color: "#FDFDFD"
+ }
+ },
+ MuiDialogContentText: {
+ root: {
+ marginBottom: 0
}
},
- outlined: {
- "&$disabled": {
- border: "2px solid #3d3d3d"
+ MuiSwitch: {
+ root: {
+ width: 75,
+ height: 50
},
- "borderWidth": "2px !important",
- "borderRadius": "4px",
- "padding": "1px 8px",
- "fontSize": "1rem"
+ switchBase: {
+ "color": "red",
+ "top": 8,
+ "left": 8,
+ "$checked$checked + &": {
+ opacity: 1,
+ backgroundColor: "#1C1F23",
+ color: "#81FEB7"
+ }
+ },
+ track: {
+ "borderRadius": "40px",
+ "backgroundColor": "inherit",
+ "border": "1px solid #FDFDFD",
+ "opacity": 0.5,
+ "$checked$checked + &": {
+ opacity: 1,
+ backgroundColor: "#1C1F23",
+ color: "#81FEB7",
+ border: "1px solid #1C1F23"
+ }
+ },
+ thumb: {
+ "width": 18,
+ "height": 18,
+ "$checked$checked + &": {
+ color: "#81FEB7"
+ }
+ },
+ colorSecondary: {
+ "color": "#FDFDFD",
+ "$checked$checked + &": {
+ color: "#81FEB7"
+ },
+ "& .Mui-checked": {
+ color: "#81FEB7"
+ }
+ }
},
- disabled: {},
- text: {
- "color": "#81FEB7",
- "&$disabled": {
- color: "#bfc5ca !important",
- background: "inherit !important"
+ MuiFormHelperText: {
+ root: {
+ display: "none"
}
},
- containedSecondary: {
- backgroundColor: "#4ed092"
- }
- },
- MuiInputBase: {
- input: {
- textAlign: "center",
- color: "#FDFDFD"
- }
- },
- MuiRadio: {
- root: {
- color: "#FDFDFD"
- }
- },
- MuiDivider: {
- root: {
- marginTop: 16,
- marginBottom: 16
- }
- },
- MuiDialog: {
- paper: {
- background: "#1C1F23",
- width: 615,
- maxWidth: "100%"
- },
- root: {
- height: "auto"
- },
- paperWidthSm: {
- maxWidth: 615,
- height: "auto"
- }
- },
- MuiFormControl: {
- root: {
- width: "100%"
- }
- },
- MuiDialogContent: {
- root: {
- "padding": "42px 54px",
- "&:first-child": {
- paddingTop: "42px"
+ MuiTable: {
+ root: {
+ borderRadius: "8px",
+ backgroundColor: "#2F3438",
+ overflow: "hidden"
}
- }
- },
- MuiSelect: {
- selectMenu: {
- textAlign: "right",
- textTransform: "capitalize"
},
- icon: {
- color: "#FDFDFD"
- }
- },
- MuiDialogContentText: {
- root: {
- marginBottom: 0
- }
- },
- MuiSwitch: {
- root: {
- width: 75,
- height: 50
- },
- switchBase: {
- "color": "red",
- "top": 8,
- "left": 8,
- "$checked$checked + &": {
- opacity: 1,
- backgroundColor: "#1C1F23",
- color: "#81FEB7"
- }
- },
- track: {
- "borderRadius": "40px",
- "backgroundColor": "inherit",
- "border": "1px solid #FDFDFD",
- "opacity": 0.5,
- "$checked$checked + &": {
- opacity: 1,
- backgroundColor: "#1C1F23",
- color: "#81FEB7",
- border: "1px solid #1C1F23"
- }
- },
- thumb: {
- "width": 18,
- "height": 18,
- "$checked$checked + &": {
- color: "#81FEB7"
- }
- },
- colorSecondary: {
- "color": "#FDFDFD",
- "$checked$checked + &": {
- color: "#81FEB7"
- },
- "& .Mui-checked": {
- color: "#81FEB7"
+ MuiTableHead: {
+ root: {
+ minHeight: 58,
+ fontSize: 16,
+ fontWeight: 400,
+ letterSpacing: "-0.01em",
+ color: "#FFFFFF"
}
- }
- },
- MuiFormHelperText: {
- root: {
- display: "none"
- }
- },
- MuiTable: {
- root: {
- borderRadius: "8px",
- backgroundColor: "#2F3438",
- overflow: "hidden"
- }
- },
- MuiTableHead: {
- root: {
- minHeight: 58,
- fontSize: 16,
- fontWeight: 400,
- letterSpacing: "-0.01em",
- color: "#FFFFFF"
- }
- },
- MuiTableFooter: {
- root: {
- minHeight: 60,
- fontSize: 16,
- fontWeight: 400,
- letterSpacing: "-0.01em",
- color: "##81FEB7",
- borderTop: "0.3px solid rgba(125,140,139, 0.2)"
- }
- },
- MuiTableBody: {
- root: {
- "& > *:not(:last-child)": {
- borderBottom: "0.3px solid #575757",
- minHeight: 90
+ },
+ MuiTableFooter: {
+ root: {
+ minHeight: 60,
+ fontSize: 16,
+ fontWeight: 400,
+ letterSpacing: "-0.01em",
+ color: "##81FEB7",
+ borderTop: "0.3px solid rgba(125,140,139, 0.2)"
}
- }
- },
- MuiTableCell: {
- root: {
- borderBottom: "unset"
},
- head: {
- fontWeight: 300
+ MuiTableBody: {
+ root: {
+ "& > *:not(:last-child)": {
+ borderBottom: "0.3px solid #575757",
+ minHeight: 90
+ }
+ }
},
- body: {
- fontWeight: 300
- }
- },
- MuiTableRow: {
- root: {
- "height": 70,
- "& th:first-child, & td:first-child": {
- paddingLeft: 46,
- textAlign: "inherit"
+ MuiTableCell: {
+ root: {
+ borderBottom: "unset"
},
- "& th:last-child, & td:last-child": {
- paddingRight: 46
+ head: {
+ fontWeight: 300
},
- "&:nth-of-type(odd)": {
- backgroundColor: "#2A2E32"
+ body: {
+ fontWeight: 300
+ }
+ },
+ MuiTableRow: {
+ root: {
+ "height": 70,
+ "& th:first-child, & td:first-child": {
+ paddingLeft: 46,
+ textAlign: "inherit"
+ },
+ "& th:last-child, & td:last-child": {
+ paddingRight: 46
+ },
+ "&:nth-of-type(odd)": {
+ backgroundColor: "#2A2E32"
+ },
+ "&:nth-of-type(even)": {
+ backgroundColor: "#383E43"
+ }
},
- "&:nth-of-type(even)": {
- backgroundColor: "#383E43"
+ head: {
+ backgroundColor: "#383E43 !important",
+ borderBottom: "0.3px solid #575757"
}
},
- head: {
- backgroundColor: "#383E43 !important",
- borderBottom: "0.3px solid #575757"
- }
- },
- MuiGrid: {
- "align-items-xs-center": {
- alignItems: "center"
- }
- },
- MuiLink: {
- underlineHover: {
- "&:hover": {
- textUnderlineOffset: "4px",
- textDecorationColor: "#fdfdfd"
+ MuiLink: {
+ underlineHover: {
+ "&:hover": {
+ textUnderlineOffset: "4px",
+ textDecorationColor: "#fdfdfd"
+ }
}
- }
- },
- MuiLinearProgress: {
- root: {
- borderRadius: 50,
- background: "rgba(125,140,139, 0.2) !important"
},
- barColorPrimary: {
- backgroundColor: "#3866f9"
- }
- },
- MuiPaper: {
- rounded: {
- borderRadius: "8px"
- }
- },
- MuiAccordionSummary: {
- root: {
- "minHeight": 91,
- "& .Mui-expanded": {
- minHeight: 91,
- display: "flex",
- alignItems: "center"
+ MuiLinearProgress: {
+ root: {
+ borderRadius: 50,
+ background: "rgba(125,140,139, 0.2) !important"
+ },
+ barColorPrimary: {
+ backgroundColor: "#3866f9"
+ }
+ },
+ MuiPaper: {
+ rounded: {
+ borderRadius: "8px"
+ }
+ },
+ MuiAccordionSummary: {
+ root: {
+ "minHeight": 91,
+ "& .Mui-expanded": {
+ minHeight: 91,
+ display: "flex",
+ alignItems: "center"
+ }
}
}
}
- }
-})
+ })
+)
-declare module "@material-ui/core/styles/createBreakpoints" {
+declare module "@mui/material/styles" {
interface BreakpointOverrides {
mobile: true
toolbarswitch: true
}
}
-export const themeOptions: ThemeOptions = {
+export const themeOptions: DeprecatedThemeOptions = {
breakpoints: {
values: {
xs: 0,
diff --git a/src/theme/legacy.ts b/src/theme/legacy.ts
index 9e682a254..2acffcb0d 100644
--- a/src/theme/legacy.ts
+++ b/src/theme/legacy.ts
@@ -1,351 +1,353 @@
-import { createTheme } from "@material-ui/core/styles"
-export const legacyTheme = createTheme({
- palette: {
- primary: {
- main: "#1C1F23",
- light: "#3D3D3D",
- dark: "#2F3438"
- },
- secondary: {
- main: "#81FEB7",
- light: "#81FEB7",
- dark: "#BFC5CA"
- },
- text: {
- primary: "#000000",
- secondary: "#FDFDFD"
- },
- error: {
- main: "#ED254E"
- },
- info: {
- main: "#3866F9"
- },
- warning: {
- main: "#FFC839"
- }
- },
- typography: {
- fontFamily: "Roboto Flex",
- h1: {
- fontSize: 35,
- letterSpacing: "-0.01em"
- },
- subtitle1: {
- fontSize: 18,
- fontWeight: 300,
- lineHeight: "26.33px",
- letterSpacing: "-0.01em"
- },
- subtitle2: {
- fontSize: 16,
- fontWeight: 300,
- lineHeight: "26.33px",
- letterSpacing: "-0.01em"
- },
- h3: {
- fontSize: 32,
- fontWeight: 600,
- fontFamily: "Roboto Flex"
- },
- h2: {
- color: "#000000",
- fontSize: 25,
- fontWeight: 500
- },
- h4: {
- fontSize: 24,
- fontWeight: 600
- },
- h5: {
- fontSize: 35
- },
- body1: {
- fontSize: 16
- },
- body2: {
- fontSize: 16,
- fontWeight: 300,
- lineHeight: "413.4%",
- opacity: 0.8
- }
- },
- overrides: {
- MuiLinearProgress: {
- colorSecondary: {
- borderRadius: 8,
- height: 8
- }
- },
- MuiSlider: {
- root: {
- color: "#3D3D3D"
- }
- },
- MuiTab: {
- root: {
- maxWidth: "100%"
+import { createTheme, adaptV4Theme } from "@mui/material/styles"
+export const legacyTheme = createTheme(
+ adaptV4Theme({
+ palette: {
+ primary: {
+ main: "#1C1F23",
+ light: "#3D3D3D",
+ dark: "#2F3438"
+ },
+ secondary: {
+ main: "#81FEB7",
+ light: "#81FEB7",
+ dark: "#BFC5CA"
+ },
+ text: {
+ primary: "#000000",
+ secondary: "#FDFDFD"
+ },
+ error: {
+ main: "#ED254E"
+ },
+ info: {
+ main: "#3866F9"
+ },
+ warning: {
+ main: "#FFC839"
}
},
- MuiTooltip: {
- tooltip: {
- backgroundColor: "#4BCF93",
- fontSize: 14,
- padding: "10px 15px"
+ typography: {
+ fontFamily: "Roboto Flex",
+ h1: {
+ fontSize: 35,
+ letterSpacing: "-0.01em"
+ },
+ subtitle1: {
+ fontSize: 18,
+ fontWeight: 300,
+ lineHeight: "26.33px",
+ letterSpacing: "-0.01em"
+ },
+ subtitle2: {
+ fontSize: 16,
+ fontWeight: 300,
+ lineHeight: "26.33px",
+ letterSpacing: "-0.01em"
+ },
+ h3: {
+ fontSize: 32,
+ fontWeight: 600,
+ fontFamily: "Roboto Flex"
+ },
+ h2: {
+ color: "#000000",
+ fontSize: 25,
+ fontWeight: 500
+ },
+ h4: {
+ fontSize: 24,
+ fontWeight: 600
+ },
+ h5: {
+ fontSize: 35
+ },
+ body1: {
+ fontSize: 16
+ },
+ body2: {
+ fontSize: 16,
+ fontWeight: 300,
+ lineHeight: "413.4%",
+ opacity: 0.8
}
},
- MuiStepLabel: {
- root: {
- marginTop: -3
- },
- label: {
- "color": "#FDFDFD",
- "opacity": 0.5,
- "marginLeft": 15,
- "fontSize": 16,
- "lineHeight": "21.6px",
- "height": 40,
- "display": "flex",
- "alignItems": "center",
- "&$completed": {
- fontWeight: 300
- },
- "&$active": {
- fontWeight: 300
- },
- "& .MuiStepLabel-completed": {
- fontWeight: 300
+ overrides: {
+ MuiLinearProgress: {
+ colorSecondary: {
+ borderRadius: 8,
+ height: 8
}
},
- active: {
- color: "#FDFDFD !important",
- opacity: 1
+ MuiSlider: {
+ root: {
+ color: "#3D3D3D"
+ }
},
- completed: {
- color: "#FDFDFD !important",
- opacity: 0.5,
- fontWeight: 300
- }
- },
- MuiStepConnector: {
- vertical: {
- padding: "0px",
- marginLeft: 17,
- marginBottom: 2
- },
- lineVertical: {
- borderLeftWidth: 3,
- minHeight: 30,
- marginTop: -16
- },
- line: {
- borderColor: "#FDFDFD",
- opacity: 0.2
- },
- active: {
- "& span": {
- borderLeftColor: "#81feb7",
- opacity: 1
+ MuiTab: {
+ root: {
+ maxWidth: "100%"
}
},
- completed: {
- "& span": {
- borderLeftColor: "#81feb7",
- opacity: 1
+ MuiTooltip: {
+ tooltip: {
+ backgroundColor: "#4BCF93",
+ fontSize: 14,
+ padding: "10px 15px"
}
- }
- },
- MuiStepContent: {
- root: {
- borderLeft: "none"
- }
- },
- MuiStep: {
- root: {
- marginBottom: 15
- }
- },
- MuiStepIcon: {
- active: {
- color: "#1C1F23 !important"
- },
- completed: {
- color: "#FDFDFD !important"
- },
- root: {
- "height": 32,
- "width": 32,
- "color": "#2f3438",
- "border": "3px solid rgba(255, 255, 255, 0.2)",
- "borderRadius": "50%",
- "&$active": {
- "fill": "#81feb7",
- "border": "3px solid #81feb7",
- "borderRadius": "50%",
- "& $text": {
- fill: "#1C1F23",
- border: "1px solid #2f3438"
+ },
+ MuiStepLabel: {
+ root: {
+ marginTop: -3
+ },
+ label: {
+ "color": "#FDFDFD",
+ "opacity": 0.5,
+ "marginLeft": 15,
+ "fontSize": 16,
+ "lineHeight": "21.6px",
+ "height": 40,
+ "display": "flex",
+ "alignItems": "center",
+ "&$completed": {
+ fontWeight: 300
+ },
+ "&$active": {
+ fontWeight: 300
+ },
+ "& .MuiStepLabel-completed": {
+ fontWeight: 300
}
},
- "&$completed": {
- fill: "#81feb7",
- border: "3px solid #81feb7"
+ active: {
+ color: "#FDFDFD !important",
+ opacity: 1
+ },
+ completed: {
+ color: "#FDFDFD !important",
+ opacity: 0.5,
+ fontWeight: 300
}
},
- text: {
- fill: "#FDFDFD"
- }
- },
- MuiInput: {
- underline: {
- "&:after": {
- borderBottom: "none"
+ MuiStepConnector: {
+ vertical: {
+ padding: "0px",
+ marginLeft: 17,
+ marginBottom: 2
+ },
+ lineVertical: {
+ borderLeftWidth: 3,
+ minHeight: 30,
+ marginTop: -16
+ },
+ line: {
+ borderColor: "#FDFDFD",
+ opacity: 0.2
+ },
+ active: {
+ "& span": {
+ borderLeftColor: "#81feb7",
+ opacity: 1
+ }
},
- "&$focused:after": {
- borderBottom: "none"
+ completed: {
+ "& span": {
+ borderLeftColor: "#81feb7",
+ opacity: 1
+ }
+ }
+ },
+ MuiStepContent: {
+ root: {
+ borderLeft: "none"
+ }
+ },
+ MuiStep: {
+ root: {
+ marginBottom: 15
+ }
+ },
+ MuiStepIcon: {
+ active: {
+ color: "#1C1F23 !important"
},
- "&$error:after": {
- borderBottom: "none"
+ completed: {
+ color: "#FDFDFD !important"
},
- "&:before": {
- borderBottom: "none"
+ root: {
+ "height": 32,
+ "width": 32,
+ "color": "#2f3438",
+ "border": "3px solid rgba(255, 255, 255, 0.2)",
+ "borderRadius": "50%",
+ "&$active": {
+ "fill": "#81feb7",
+ "border": "3px solid #81feb7",
+ "borderRadius": "50%",
+ "& $text": {
+ fill: "#1C1F23",
+ border: "1px solid #2f3438"
+ }
+ },
+ "&$completed": {
+ fill: "#81feb7",
+ border: "3px solid #81feb7"
+ }
},
- "&:hover:not($disabled):not($focused):not($error):before": {
- borderBottom: "none"
+ text: {
+ fill: "#FDFDFD"
+ }
+ },
+ MuiInput: {
+ underline: {
+ "&:after": {
+ borderBottom: "none"
+ },
+ "&$focused:after": {
+ borderBottom: "none"
+ },
+ "&$error:after": {
+ borderBottom: "none"
+ },
+ "&:before": {
+ borderBottom: "none"
+ },
+ "&:hover:not($disabled):not($focused):not($error):before": {
+ borderBottom: "none"
+ },
+ "&$disabled:before": {
+ borderBottom: "none"
+ },
+ "&:active:not($disabled):not($focused):not($error):before": {
+ borderBottom: "none"
+ }
+ }
+ },
+ MuiInputAdornment: {
+ positionStart: {
+ marginLeft: 8
+ }
+ },
+ MuiButton: {
+ root: {
+ "&$disabled": {
+ color: "#3d3d3d"
+ }
},
- "&$disabled:before": {
- borderBottom: "none"
+ outlined: {
+ "&$disabled": {
+ border: "2px solid #3d3d3d"
+ },
+ "borderWidth": "2px !important",
+ "borderRadius": "4px",
+ "padding": "1px 8px",
+ "fontSize": "1rem"
+ }
+ },
+ MuiInputBase: {
+ input: {
+ textAlign: "start",
+ color: "#FDFDFD"
},
- "&:active:not($disabled):not($focused):not($error):before": {
- borderBottom: "none"
+ root: {
+ fontWeight: 300
}
- }
- },
- MuiInputAdornment: {
- positionStart: {
- marginLeft: 8
- }
- },
- MuiButton: {
- root: {
- "&$disabled": {
- color: "#3d3d3d"
+ },
+ MuiDivider: {
+ root: {
+ marginTop: 16,
+ marginBottom: 16
}
},
- outlined: {
- "&$disabled": {
- border: "2px solid #3d3d3d"
+ MuiDialog: {
+ paper: {
+ background: "#1C1F23",
+ width: 570,
+ maxWidth: "100%"
},
- "borderWidth": "2px !important",
- "borderRadius": "4px",
- "padding": "1px 8px",
- "fontSize": "1rem"
- }
- },
- MuiInputBase: {
- input: {
- textAlign: "start",
- color: "#FDFDFD"
+ root: {
+ minHeight: 600,
+ height: "auto"
+ },
+ paperWidthSm: {
+ minHeight: 600,
+ height: "auto"
+ }
},
- root: {
- fontWeight: 300
- }
- },
- MuiDivider: {
- root: {
- marginTop: 16,
- marginBottom: 16
- }
- },
- MuiDialog: {
- paper: {
- background: "#1C1F23",
- width: 570,
- maxWidth: "100%"
- },
- root: {
- minHeight: 600,
- height: "auto"
- },
- paperWidthSm: {
- minHeight: 600,
- height: "auto"
- }
- },
- MuiFormControl: {
- root: {
- width: "100%"
- }
- },
- MuiDialogContent: {
- root: {
- padding: 0
- }
- },
- MuiSelect: {
- selectMenu: {
- textAlign: "right"
- }
- },
- MuiDialogContentText: {
- root: {
- marginBottom: 0
- }
- },
- MuiSwitch: {
- root: {
- width: 75,
- height: 50
- },
- switchBase: {
- "color": "red",
- "top": 8,
- "left": 8,
- "$checked$checked + &": {
- opacity: 1,
- backgroundColor: "#1C1F23",
- color: "#81FEB7"
+ MuiFormControl: {
+ root: {
+ width: "100%"
+ }
+ },
+ MuiDialogContent: {
+ root: {
+ padding: 0
}
},
- track: {
- "borderRadius": "40px",
- "backgroundColor": "inherit",
- "border": "1px solid #FDFDFD",
- "opacity": 0.5,
- "$checked$checked + &": {
- opacity: 1,
- backgroundColor: "#1C1F23",
- color: "#81FEB7"
+ MuiSelect: {
+ select: {
+ textAlign: "right"
}
},
- thumb: {
- "width": 18,
- "height": 18,
- "$checked$checked + &": {
- color: "#81FEB7"
+ MuiDialogContentText: {
+ root: {
+ marginBottom: 0
}
},
- colorSecondary: {
- "color": "#FDFDFD",
- "$checked$checked + &": {
- color: "#81FEB7"
+ MuiSwitch: {
+ root: {
+ width: 75,
+ height: 50
},
- "& .Mui-checked": {
- color: "#81FEB7"
+ switchBase: {
+ "color": "red",
+ "top": 8,
+ "left": 8,
+ "$checked$checked + &": {
+ opacity: 1,
+ backgroundColor: "#1C1F23",
+ color: "#81FEB7"
+ }
+ },
+ track: {
+ "borderRadius": "40px",
+ "backgroundColor": "inherit",
+ "border": "1px solid #FDFDFD",
+ "opacity": 0.5,
+ "$checked$checked + &": {
+ opacity: 1,
+ backgroundColor: "#1C1F23",
+ color: "#81FEB7"
+ }
+ },
+ thumb: {
+ "width": 18,
+ "height": 18,
+ "$checked$checked + &": {
+ color: "#81FEB7"
+ }
+ },
+ colorSecondary: {
+ "color": "#FDFDFD",
+ "$checked$checked + &": {
+ color: "#81FEB7"
+ },
+ "& .Mui-checked": {
+ color: "#81FEB7"
+ }
}
- }
- },
- MuiFormHelperText: {
- root: {
- display: "none"
- }
- },
- MuiAccordionSummary: {
- root: {
- "& .Mui-expanded": {
- minHeight: 91
+ },
+ MuiFormHelperText: {
+ root: {
+ display: "none"
+ }
+ },
+ MuiAccordionSummary: {
+ root: {
+ "& .Mui-expanded": {
+ minHeight: 91
+ }
}
}
}
- }
-})
+ })
+)
diff --git a/yarn.lock b/yarn.lock
index 327a07733..25d7bcf2f 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -1109,11 +1109,16 @@
"@babel/plugin-transform-modules-commonjs" "^7.27.1"
"@babel/plugin-transform-typescript" "^7.28.5"
-"@babel/runtime@7.28.6", "@babel/runtime@^7.1.2", "@babel/runtime@^7.11.2", "@babel/runtime@^7.12.13", "@babel/runtime@^7.12.5", "@babel/runtime@^7.15.4", "@babel/runtime@^7.16.3", "@babel/runtime@^7.18.3", "@babel/runtime@^7.19.4", "@babel/runtime@^7.21.0", "@babel/runtime@^7.23.2", "@babel/runtime@^7.23.9", "@babel/runtime@^7.3.1", "@babel/runtime@^7.4.4", "@babel/runtime@^7.5.5", "@babel/runtime@^7.8.3", "@babel/runtime@^7.8.7":
+"@babel/runtime@7.28.6", "@babel/runtime@^7.1.2", "@babel/runtime@^7.11.2", "@babel/runtime@^7.12.13", "@babel/runtime@^7.12.5", "@babel/runtime@^7.15.4", "@babel/runtime@^7.16.3", "@babel/runtime@^7.18.3", "@babel/runtime@^7.19.4", "@babel/runtime@^7.21.0", "@babel/runtime@^7.23.2", "@babel/runtime@^7.3.1", "@babel/runtime@^7.5.5", "@babel/runtime@^7.8.3", "@babel/runtime@^7.8.7":
version "7.28.6"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.28.6.tgz#d267a43cb1836dc4d182cce93ae75ba954ef6d2b"
integrity sha512-05WQkdpL9COIMz4LjTxGpPNCdlpyimKppYNoJ5Di5EUObifl8t4tuLuUBBZEpoLYOmfvIWrsp9fCl0HoPRVTdA==
+"@babel/runtime@^7.26.0":
+ version "7.29.7"
+ resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.29.7.tgz#12022450c45a4da6d8d8287b18a4ff2ddb23f768"
+ integrity sha512-Nq8OhGWiZIZGV6hLHoyAKLLcJihP/xFeBMGJoUrxTX2psI8dCifzLhZISFb+VWS3wFMRDmCGw5R+dOySCqPLhw==
+
"@babel/template@^7.28.6", "@babel/template@^7.3.3":
version "7.28.6"
resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.28.6.tgz#0e7e56ecedb78aeef66ce7972b082fce76a23e57"
@@ -1452,11 +1457,6 @@
"@emotion/weak-memoize" "^0.4.0"
stylis "4.2.0"
-"@emotion/hash@^0.8.0":
- version "0.8.0"
- resolved "https://registry.yarnpkg.com/@emotion/hash/-/hash-0.8.0.tgz#bbbff68978fefdbe68ccb533bc8cbe1d1afb5413"
- integrity sha512-kBJtf7PH6aWwZ6fka3zQ0p6SBYzx4fl1LoZXE2RrnYST9Xljm7WfKJrU4g/Xr3Beg72MLrp1AWNUmuYJTL7Cow==
-
"@emotion/hash@^0.9.2":
version "0.9.2"
resolved "https://registry.yarnpkg.com/@emotion/hash/-/hash-0.9.2.tgz#ff9221b9f58b4dfe61e619a7788734bd63f6898b"
@@ -2278,6 +2278,33 @@
resolved "https://registry.yarnpkg.com/@firebase/webchannel-wrapper/-/webchannel-wrapper-1.0.3.tgz#a73bab8eb491d7b8b7be2f0e6c310647835afe83"
integrity sha512-2xCRM9q9FlzGZCdgDMJwc0gyUkWFtkosy7Xxr6sFgQwn+wMNIWd7xIvYNauU1r64B5L5rsGKy/n9TKJ0aAFeqQ==
+"@floating-ui/core@^1.7.5":
+ version "1.7.5"
+ resolved "https://registry.yarnpkg.com/@floating-ui/core/-/core-1.7.5.tgz#d4af157a03330af5a60e69da7a4692507ada0622"
+ integrity sha512-1Ih4WTWyw0+lKyFMcBHGbb5U5FtuHJuujoyyr5zTaWS5EYMeT6Jb2AuDeftsCsEuchO+mM2ij5+q9crhydzLhQ==
+ dependencies:
+ "@floating-ui/utils" "^0.2.11"
+
+"@floating-ui/dom@^1.7.6":
+ version "1.7.6"
+ resolved "https://registry.yarnpkg.com/@floating-ui/dom/-/dom-1.7.6.tgz#f915bba5abbb177e1f227cacee1b4d0634b187bf"
+ integrity sha512-9gZSAI5XM36880PPMm//9dfiEngYoC6Am2izES1FF406YFsjvyBMmeJ2g4SAju3xWwtuynNRFL2s9hgxpLI5SQ==
+ dependencies:
+ "@floating-ui/core" "^1.7.5"
+ "@floating-ui/utils" "^0.2.11"
+
+"@floating-ui/react-dom@^2.1.1":
+ version "2.1.8"
+ resolved "https://registry.yarnpkg.com/@floating-ui/react-dom/-/react-dom-2.1.8.tgz#5fb5a20d10aafb9505f38c24f38d00c8e1598893"
+ integrity sha512-cC52bHwM/n/CxS87FH0yWdngEZrjdtLW/qVruo68qg+prK7ZQ4YGdut2GyDVpoGeAYe/h899rVeOVm6Oi40k2A==
+ dependencies:
+ "@floating-ui/dom" "^1.7.6"
+
+"@floating-ui/utils@^0.2.11":
+ version "0.2.11"
+ resolved "https://registry.yarnpkg.com/@floating-ui/utils/-/utils-0.2.11.tgz#a269e055e40e2f45873bae9d1a2fdccbd314ea3f"
+ integrity sha512-RiB/yIh78pcIxl6lLMG0CgBXAZ2Y0eVHqMPYugu+9U0AeT6YBeiJpf7lbdJNIugFP5SIjwNRgo4DhR1Qxi26Gg==
+
"@grpc/grpc-js@~1.9.0":
version "1.9.15"
resolved "https://registry.yarnpkg.com/@grpc/grpc-js/-/grpc-js-1.9.15.tgz#433d7ac19b1754af690ea650ab72190bd700739b"
@@ -2842,88 +2869,6 @@
dependencies:
"@lit-labs/ssr-dom-shim" "^1.0.0"
-"@material-ui/core@^4.11.3":
- version "4.12.4"
- resolved "https://registry.yarnpkg.com/@material-ui/core/-/core-4.12.4.tgz#4ac17488e8fcaf55eb6a7f5efb2a131e10138a73"
- integrity sha512-tr7xekNlM9LjA6pagJmL8QCgZXaubWUwkJnoYcMKd4gw/t4XiyvnTkjdGrUVicyB2BsdaAv1tvow45bPM4sSwQ==
- dependencies:
- "@babel/runtime" "^7.4.4"
- "@material-ui/styles" "^4.11.5"
- "@material-ui/system" "^4.12.2"
- "@material-ui/types" "5.1.0"
- "@material-ui/utils" "^4.11.3"
- "@types/react-transition-group" "^4.2.0"
- clsx "^1.0.4"
- hoist-non-react-statics "^3.3.2"
- popper.js "1.16.1-lts"
- prop-types "^15.7.2"
- react-is "^16.8.0 || ^17.0.0"
- react-transition-group "^4.4.0"
-
-"@material-ui/icons@^4.9.1":
- version "4.11.3"
- resolved "https://registry.yarnpkg.com/@material-ui/icons/-/icons-4.11.3.tgz#b0693709f9b161ce9ccde276a770d968484ecff1"
- integrity sha512-IKHlyx6LDh8n19vzwH5RtHIOHl9Tu90aAAxcbWME6kp4dmvODM3UvOHJeMIDzUbd4muuJKHmlNoBN+mDY4XkBA==
- dependencies:
- "@babel/runtime" "^7.4.4"
-
-"@material-ui/lab@^4.0.0-alpha.57":
- version "4.0.0-alpha.61"
- resolved "https://registry.yarnpkg.com/@material-ui/lab/-/lab-4.0.0-alpha.61.tgz#9bf8eb389c0c26c15e40933cc114d4ad85e3d978"
- integrity sha512-rSzm+XKiNUjKegj8bzt5+pygZeckNLOr+IjykH8sYdVk7dE9y2ZuUSofiMV2bJk3qU+JHwexmw+q0RyNZB9ugg==
- dependencies:
- "@babel/runtime" "^7.4.4"
- "@material-ui/utils" "^4.11.3"
- clsx "^1.0.4"
- prop-types "^15.7.2"
- react-is "^16.8.0 || ^17.0.0"
-
-"@material-ui/styles@^4.11.5":
- version "4.11.5"
- resolved "https://registry.yarnpkg.com/@material-ui/styles/-/styles-4.11.5.tgz#19f84457df3aafd956ac863dbe156b1d88e2bbfb"
- integrity sha512-o/41ot5JJiUsIETME9wVLAJrmIWL3j0R0Bj2kCOLbSfqEkKf0fmaPt+5vtblUh5eXr2S+J/8J3DaCb10+CzPGA==
- dependencies:
- "@babel/runtime" "^7.4.4"
- "@emotion/hash" "^0.8.0"
- "@material-ui/types" "5.1.0"
- "@material-ui/utils" "^4.11.3"
- clsx "^1.0.4"
- csstype "^2.5.2"
- hoist-non-react-statics "^3.3.2"
- jss "^10.5.1"
- jss-plugin-camel-case "^10.5.1"
- jss-plugin-default-unit "^10.5.1"
- jss-plugin-global "^10.5.1"
- jss-plugin-nested "^10.5.1"
- jss-plugin-props-sort "^10.5.1"
- jss-plugin-rule-value-function "^10.5.1"
- jss-plugin-vendor-prefixer "^10.5.1"
- prop-types "^15.7.2"
-
-"@material-ui/system@^4.12.2":
- version "4.12.2"
- resolved "https://registry.yarnpkg.com/@material-ui/system/-/system-4.12.2.tgz#f5c389adf3fce4146edd489bf4082d461d86aa8b"
- integrity sha512-6CSKu2MtmiJgcCGf6nBQpM8fLkuB9F55EKfbdTC80NND5wpTmKzwdhLYLH3zL4cLlK0gVaaltW7/wMuyTnN0Lw==
- dependencies:
- "@babel/runtime" "^7.4.4"
- "@material-ui/utils" "^4.11.3"
- csstype "^2.5.2"
- prop-types "^15.7.2"
-
-"@material-ui/types@5.1.0":
- version "5.1.0"
- resolved "https://registry.yarnpkg.com/@material-ui/types/-/types-5.1.0.tgz#efa1c7a0b0eaa4c7c87ac0390445f0f88b0d88f2"
- integrity sha512-7cqRjrY50b8QzRSYyhSpx4WRw2YuO0KKIGQEVk5J8uoz2BanawykgZGoWEqKm7pVIbzFDN0SpPcVV4IhOFkl8A==
-
-"@material-ui/utils@^4.11.3":
- version "4.11.3"
- resolved "https://registry.yarnpkg.com/@material-ui/utils/-/utils-4.11.3.tgz#232bd86c4ea81dab714f21edad70b7fdf0253942"
- integrity sha512-ZuQPV4rBK/V1j2dIkSSEcH5uT6AaHuKWFfotADHsC0wVL1NLd2WkFCm4ZZbX33iO4ydl6V0GPngKm8HZQ2oujg==
- dependencies:
- "@babel/runtime" "^7.4.4"
- prop-types "^15.7.2"
- react-is "^16.8.0 || ^17.0.0"
-
"@metamask/eth-json-rpc-provider@^1.0.0":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@metamask/eth-json-rpc-provider/-/eth-json-rpc-provider-1.0.1.tgz#3fd5316c767847f4ca107518b611b15396a5a32c"
@@ -3192,83 +3137,133 @@
resolved "https://registry.yarnpkg.com/@msgpack/msgpack/-/msgpack-3.1.3.tgz#c4bff2b9539faf0882f3ee03537a7e9a4b3a7864"
integrity sha512-47XIizs9XZXvuJgoaJUIE2lFoID8ugvc0jzSHP+Ptfk8nTbnR8g788wv48N03Kx0UkAv559HWRQ3yzOgzlRNUA==
-"@mui/core-downloads-tracker@^5.18.0":
- version "5.18.0"
- resolved "https://registry.yarnpkg.com/@mui/core-downloads-tracker/-/core-downloads-tracker-5.18.0.tgz#85019a8704b0f63305fc5600635ee663810f2b66"
- integrity sha512-jbhwoQ1AY200PSSOrNXmrFCaSDSJWP7qk6urkTmIirvRXDROkqe+QwcLlUiw/PrREwsIF/vm3/dAXvjlMHF0RA==
+"@mui/base@5.0.0-beta.70":
+ version "5.0.0-beta.70"
+ resolved "https://registry.yarnpkg.com/@mui/base/-/base-5.0.0-beta.70.tgz#cd9755b8ae1b375fb3c985f06a4741505d793ecf"
+ integrity sha512-Tb/BIhJzb0pa5zv/wu7OdokY9ZKEDqcu1BDFnohyvGCoHuSXbEr90rPq1qeNW3XvTBIbNWHEF7gqge+xpUo6tQ==
+ dependencies:
+ "@babel/runtime" "^7.26.0"
+ "@floating-ui/react-dom" "^2.1.1"
+ "@mui/types" "~7.2.24"
+ "@mui/utils" "^6.4.8"
+ "@popperjs/core" "^2.11.8"
+ clsx "^2.1.1"
+ prop-types "^15.8.1"
+
+"@mui/core-downloads-tracker@^6.5.0":
+ version "6.5.0"
+ resolved "https://registry.yarnpkg.com/@mui/core-downloads-tracker/-/core-downloads-tracker-6.5.0.tgz#e9f7049d7e7bb1ee05839f7a0ce813755f137432"
+ integrity sha512-LGb8t8i6M2ZtS3Drn3GbTI1DVhDY6FJ9crEey2lZ0aN2EMZo8IZBZj9wRf4vqbZHaWjsYgtbOnJw5V8UWbmK2Q==
-"@mui/icons-material@^5.14.14":
- version "5.18.0"
- resolved "https://registry.yarnpkg.com/@mui/icons-material/-/icons-material-5.18.0.tgz#97d87f1b7bee5fa7b9ba844518631de3112c1e57"
- integrity sha512-1s0vEZj5XFXDMmz3Arl/R7IncFqJ+WQ95LDp1roHWGDE2oCO3IS4/hmiOv1/8SD9r6B7tv9GLiqVZYHo+6PkTg==
+"@mui/icons-material@^6.5.0":
+ version "6.5.0"
+ resolved "https://registry.yarnpkg.com/@mui/icons-material/-/icons-material-6.5.0.tgz#26bfa7c8574cc4e57c2f2835bfd6b1efa7f310fa"
+ integrity sha512-VPuPqXqbBPlcVSA0BmnoE4knW4/xG6Thazo8vCLWkOKusko6DtwFV6B665MMWJ9j0KFohTIf3yx2zYtYacvG1g==
dependencies:
- "@babel/runtime" "^7.23.9"
+ "@babel/runtime" "^7.26.0"
-"@mui/material@^5.14.14":
- version "5.18.0"
- resolved "https://registry.yarnpkg.com/@mui/material/-/material-5.18.0.tgz#71e72d52338252edc6f8d9461e04fdf0d61905cd"
- integrity sha512-bbH/HaJZpFtXGvWg3TsBWG4eyt3gah3E7nCNU8GLyRjVoWcA91Vm/T+sjHfUcwgJSw9iLtucfHBoq+qW/T30aA==
+"@mui/lab@6.0.1-beta.36":
+ version "6.0.1-beta.36"
+ resolved "https://registry.yarnpkg.com/@mui/lab/-/lab-6.0.1-beta.36.tgz#f91fa618e2d4e72e5c56a62304daf2663986a17c"
+ integrity sha512-af9lDmA9SZGEWF1XXk0EVBpfCITk9IKsvh9lLOZGdYaaHfQeCsqxGEDMvNO66j0P8EYoxpyry84LFCJYuLVtVw==
dependencies:
- "@babel/runtime" "^7.23.9"
- "@mui/core-downloads-tracker" "^5.18.0"
- "@mui/system" "^5.18.0"
- "@mui/types" "~7.2.15"
- "@mui/utils" "^5.17.1"
+ "@babel/runtime" "^7.26.0"
+ "@mui/base" "5.0.0-beta.70"
+ "@mui/system" "^6.5.0"
+ "@mui/types" "~7.2.24"
+ "@mui/utils" "^6.4.9"
+ clsx "^2.1.1"
+ prop-types "^15.8.1"
+
+"@mui/material@^6.5.0":
+ version "6.5.0"
+ resolved "https://registry.yarnpkg.com/@mui/material/-/material-6.5.0.tgz#c7eccfe260030433c51b7aec17574bae4504cacc"
+ integrity sha512-yjvtXoFcrPLGtgKRxFaH6OQPtcLPhkloC0BML6rBG5UeldR0nPULR/2E2BfXdo5JNV7j7lOzrrLX2Qf/iSidow==
+ dependencies:
+ "@babel/runtime" "^7.26.0"
+ "@mui/core-downloads-tracker" "^6.5.0"
+ "@mui/system" "^6.5.0"
+ "@mui/types" "~7.2.24"
+ "@mui/utils" "^6.4.9"
"@popperjs/core" "^2.11.8"
- "@types/react-transition-group" "^4.4.10"
- clsx "^2.1.0"
+ "@types/react-transition-group" "^4.4.12"
+ clsx "^2.1.1"
csstype "^3.1.3"
prop-types "^15.8.1"
react-is "^19.0.0"
react-transition-group "^4.4.5"
-"@mui/private-theming@^5.17.1":
- version "5.17.1"
- resolved "https://registry.yarnpkg.com/@mui/private-theming/-/private-theming-5.17.1.tgz#b4b6fbece27830754ef78186e3f1307dca42f295"
- integrity sha512-XMxU0NTYcKqdsG8LRmSoxERPXwMbp16sIXPcLVgLGII/bVNagX0xaheWAwFv8+zDK7tI3ajllkuD3GZZE++ICQ==
+"@mui/private-theming@^6.4.9":
+ version "6.4.9"
+ resolved "https://registry.yarnpkg.com/@mui/private-theming/-/private-theming-6.4.9.tgz#0c1d65a638a1740aad0eb715d79e76471abe8175"
+ integrity sha512-LktcVmI5X17/Q5SkwjCcdOLBzt1hXuc14jYa7NPShog0GBDCDvKtcnP0V7a2s6EiVRlv7BzbWEJzH6+l/zaCxw==
dependencies:
- "@babel/runtime" "^7.23.9"
- "@mui/utils" "^5.17.1"
+ "@babel/runtime" "^7.26.0"
+ "@mui/utils" "^6.4.9"
prop-types "^15.8.1"
-"@mui/styled-engine@^5.18.0":
- version "5.18.0"
- resolved "https://registry.yarnpkg.com/@mui/styled-engine/-/styled-engine-5.18.0.tgz#914cca1385bb33ce0cde31721f529c8bd7fa301c"
- integrity sha512-BN/vKV/O6uaQh2z5rXV+MBlVrEkwoS/TK75rFQ2mjxA7+NBo8qtTAOA4UaM0XeJfn7kh2wZ+xQw2HAx0u+TiBg==
+"@mui/styled-engine@^6.5.0":
+ version "6.5.0"
+ resolved "https://registry.yarnpkg.com/@mui/styled-engine/-/styled-engine-6.5.0.tgz#cf9b3e706517f5f2989df92d2aea0d2917a77c8a"
+ integrity sha512-8woC2zAqF4qUDSPIBZ8v3sakj+WgweolpyM/FXf8jAx6FMls+IE4Y8VDZc+zS805J7PRz31vz73n2SovKGaYgw==
dependencies:
- "@babel/runtime" "^7.23.9"
+ "@babel/runtime" "^7.26.0"
"@emotion/cache" "^11.13.5"
"@emotion/serialize" "^1.3.3"
+ "@emotion/sheet" "^1.4.0"
csstype "^3.1.3"
prop-types "^15.8.1"
-"@mui/system@^5.18.0":
- version "5.18.0"
- resolved "https://registry.yarnpkg.com/@mui/system/-/system-5.18.0.tgz#e55331203a40584b26c5a855a07949ac8973bfb6"
- integrity sha512-ojZGVcRWqWhu557cdO3pWHloIGJdzVtxs3rk0F9L+x55LsUjcMUVkEhiF7E4TMxZoF9MmIHGGs0ZX3FDLAf0Xw==
- dependencies:
- "@babel/runtime" "^7.23.9"
- "@mui/private-theming" "^5.17.1"
- "@mui/styled-engine" "^5.18.0"
- "@mui/types" "~7.2.15"
- "@mui/utils" "^5.17.1"
- clsx "^2.1.0"
+"@mui/styles@^6.5.0":
+ version "6.5.0"
+ resolved "https://registry.yarnpkg.com/@mui/styles/-/styles-6.5.0.tgz#52f67c5b10b66b84300717923d20aba13d6d05bd"
+ integrity sha512-DeE/S/l6adnMpKfgx6l7UaQwYuf+gD4FCp6En3Vdg2Er+CTArj4DcHNFVzb8HZ2nNqACwmSm16/P08m1vAxv2w==
+ dependencies:
+ "@babel/runtime" "^7.26.0"
+ "@emotion/hash" "^0.9.2"
+ "@mui/private-theming" "^6.4.9"
+ "@mui/types" "~7.2.24"
+ "@mui/utils" "^6.4.9"
+ clsx "^2.1.1"
+ csstype "^3.1.3"
+ hoist-non-react-statics "^3.3.2"
+ jss "^10.10.0"
+ jss-plugin-camel-case "^10.10.0"
+ jss-plugin-default-unit "^10.10.0"
+ jss-plugin-global "^10.10.0"
+ jss-plugin-nested "^10.10.0"
+ jss-plugin-props-sort "^10.10.0"
+ jss-plugin-rule-value-function "^10.10.0"
+ jss-plugin-vendor-prefixer "^10.10.0"
+ prop-types "^15.8.1"
+
+"@mui/system@^6.5.0":
+ version "6.5.0"
+ resolved "https://registry.yarnpkg.com/@mui/system/-/system-6.5.0.tgz#52751ac4e3a546f53bc34fd2ef2731c28a824b92"
+ integrity sha512-XcbBYxDS+h/lgsoGe78ExXFZXtuIlSBpn/KsZq8PtZcIkUNJInkuDqcLd2rVBQrDC1u+rvVovdaWPf2FHKJf3w==
+ dependencies:
+ "@babel/runtime" "^7.26.0"
+ "@mui/private-theming" "^6.4.9"
+ "@mui/styled-engine" "^6.5.0"
+ "@mui/types" "~7.2.24"
+ "@mui/utils" "^6.4.9"
+ clsx "^2.1.1"
csstype "^3.1.3"
prop-types "^15.8.1"
-"@mui/types@~7.2.15":
+"@mui/types@~7.2.24":
version "7.2.24"
resolved "https://registry.yarnpkg.com/@mui/types/-/types-7.2.24.tgz#5eff63129d9c29d80bbf2d2e561bd0690314dec2"
integrity sha512-3c8tRt/CbWZ+pEg7QpSwbdxOk36EfmhbKf6AGZsD1EcLDLTSZoxxJ86FVtcjxvjuhdyBiWKSTGZFaXCnidO2kw==
-"@mui/utils@^5.17.1":
- version "5.17.1"
- resolved "https://registry.yarnpkg.com/@mui/utils/-/utils-5.17.1.tgz#72ba4ffa79f7bdf69d67458139390f18484b6e6b"
- integrity sha512-jEZ8FTqInt2WzxDV8bhImWBqeQRD99c/id/fq83H0ER9tFl+sfZlaAoCdznGvbSQQ9ividMxqSV2c7cC1vBcQg==
+"@mui/utils@^6.4.8", "@mui/utils@^6.4.9":
+ version "6.4.9"
+ resolved "https://registry.yarnpkg.com/@mui/utils/-/utils-6.4.9.tgz#b0df01daa254c7c32a1a30b30a5179e19ef071a7"
+ integrity sha512-Y12Q9hbK9g+ZY0T3Rxrx9m2m10gaphDuUMgWxyV5kNJevVxXYCLclYUCC9vXaIk1/NdNDTcW2Yfr2OGvNFNmHg==
dependencies:
- "@babel/runtime" "^7.23.9"
- "@mui/types" "~7.2.15"
- "@types/prop-types" "^15.7.12"
+ "@babel/runtime" "^7.26.0"
+ "@mui/types" "~7.2.24"
+ "@types/prop-types" "^15.7.14"
clsx "^2.1.1"
prop-types "^15.8.1"
react-is "^19.0.0"
@@ -4709,7 +4704,7 @@
resolved "https://registry.yarnpkg.com/@types/prismjs/-/prismjs-1.26.6.tgz#6ea27c126d645319ae4f7055eda63a9e835c0187"
integrity sha512-vqlvI7qlMvcCBbVe0AKAb4f97//Hy0EBTaiW8AalRnG/xAN5zOiWWyrNqNXeq8+KAuvRewjCVY1+IPxk4RdNYw==
-"@types/prop-types@*", "@types/prop-types@^15.0.0", "@types/prop-types@^15.7.12":
+"@types/prop-types@*", "@types/prop-types@^15.0.0", "@types/prop-types@^15.7.14":
version "15.7.15"
resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.15.tgz#e6e5a86d602beaca71ce5163fadf5f95d70931c7"
integrity sha512-F6bEyamV9jKGAFBEmlQnesRPGOQqS2+Uwi0Em15xenOxHaf2hv6L8YCVn3rPdPJOiJfPiCnLIRyvwVaqMY3MIw==
@@ -4775,7 +4770,7 @@
"@types/history" "^4.7.11"
"@types/react" "*"
-"@types/react-transition-group@^4.2.0", "@types/react-transition-group@^4.4.10":
+"@types/react-transition-group@^4.4.12":
version "4.4.12"
resolved "https://registry.yarnpkg.com/@types/react-transition-group/-/react-transition-group-4.4.12.tgz#b5d76568485b02a307238270bfe96cb51ee2a044"
integrity sha512-8TV6R3h2j7a91c+1DXdJi3Syo69zzIZbz7Lg5tORM5LEJG7X/E6a1V3drRyBRZq7/utz7A+c4OgYLiLcYGHG6w==
@@ -7084,12 +7079,12 @@ clone-deep@^4.0.1:
kind-of "^6.0.2"
shallow-clone "^3.0.0"
-clsx@^1.0.4, clsx@^1.1.0, clsx@^1.2.1:
+clsx@^1.1.0, clsx@^1.2.1:
version "1.2.1"
resolved "https://registry.yarnpkg.com/clsx/-/clsx-1.2.1.tgz#0ddc4a20a549b59c93a4116bb26f5294ca17dc12"
integrity sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg==
-clsx@^2.1.0, clsx@^2.1.1:
+clsx@^2.1.1:
version "2.1.1"
resolved "https://registry.yarnpkg.com/clsx/-/clsx-2.1.1.tgz#eed397c9fd8bd882bfb18deab7102049a2f32999"
integrity sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==
@@ -7734,11 +7729,6 @@ cssstyle@^5.3.4:
css-tree "^3.1.0"
lru-cache "^11.2.4"
-csstype@^2.5.2:
- version "2.6.21"
- resolved "https://registry.yarnpkg.com/csstype/-/csstype-2.6.21.tgz#2efb85b7cc55c80017c66a5ad7cbd931fda3a90e"
- integrity sha512-Z1PhmomIfypOpoMjRQB70jfvy/wxT50qW08YXO5lMIJkrdq4yOTR+AW7FqutScmB9NkLwxo+jU+kZLbofZZq/w==
-
csstype@^3.0.2, csstype@^3.1.3, csstype@^3.2.2:
version "3.2.3"
resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.2.3.tgz#ec48c0f3e993e50648c86da559e2610995cf989a"
@@ -9578,10 +9568,10 @@ form-data@^3.0.0:
hasown "^2.0.2"
mime-types "^2.1.35"
-formik-material-ui@^3.0.1:
- version "3.0.1"
- resolved "https://registry.yarnpkg.com/formik-material-ui/-/formik-material-ui-3.0.1.tgz#189407885c411fb202514eb9993a4d9ea46ce82a"
- integrity sha512-N8oxZIdhY70npRv86IfF6Zaaps9RL3a37XRdq02WDroB3XZC1mXs6lA/zQ09ZYFWYJp/UjI80SKVpVa/xJOJJA==
+formik-mui@^5.0.0-alpha.1:
+ version "5.0.0-alpha.1"
+ resolved "https://registry.yarnpkg.com/formik-mui/-/formik-mui-5.0.0-alpha.1.tgz#9bdb5580b70c3c4d72a1f0617e94062b2f614234"
+ integrity sha512-sHzrQwAWdVuKOdI0Xe1kCzXSjKXr50Jcot+szLc64SPw06J4DqwXN3GNxbhvfyEBGJBIL36e+cSSbm2i++tqqg==
formik@^2.2.6:
version "2.4.9"
@@ -9877,6 +9867,11 @@ globby@^11.0.4, globby@^11.1.0:
merge2 "^1.4.1"
slash "^3.0.0"
+goober@^2.0.33:
+ version "2.1.19"
+ resolved "https://registry.yarnpkg.com/goober/-/goober-2.1.19.tgz#a4b4dcdbba9325b8c4d7380099f9f281f27c6a6f"
+ integrity sha512-U7veizMqxyKlM58+Z5j2ngJBH/r9siDmxpvNxSw0PylF6WQvrASJEZrxh1hidRBJc2jqoBVSyOban5u8m+6Rxg==
+
gopd@^1.0.1, gopd@^1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/gopd/-/gopd-1.2.0.tgz#89f56b8217bdbc8802bd299df6d7f1081d7e51a1"
@@ -12122,7 +12117,7 @@ jsonschema@^1.4.0:
resolved "https://registry.yarnpkg.com/jsonschema/-/jsonschema-1.5.0.tgz#f6aceb1ab9123563dd901d05f81f9d4883d3b7d8"
integrity sha512-K+A9hhqbn0f3pJX17Q/7H6yQfD/5OXgdrR5UE12gMXCiN9D5Xq2o5mddV2QEcX/bjla99ASsAAQUyMCCRWAEhw==
-jss-plugin-camel-case@^10.5.1:
+jss-plugin-camel-case@^10.10.0:
version "10.10.0"
resolved "https://registry.yarnpkg.com/jss-plugin-camel-case/-/jss-plugin-camel-case-10.10.0.tgz#27ea159bab67eb4837fa0260204eb7925d4daa1c"
integrity sha512-z+HETfj5IYgFxh1wJnUAU8jByI48ED+v0fuTuhKrPR+pRBYS2EDwbusU8aFOpCdYhtRc9zhN+PJ7iNE8pAWyPw==
@@ -12131,7 +12126,7 @@ jss-plugin-camel-case@^10.5.1:
hyphenate-style-name "^1.0.3"
jss "10.10.0"
-jss-plugin-default-unit@^10.5.1:
+jss-plugin-default-unit@^10.10.0:
version "10.10.0"
resolved "https://registry.yarnpkg.com/jss-plugin-default-unit/-/jss-plugin-default-unit-10.10.0.tgz#db3925cf6a07f8e1dd459549d9c8aadff9804293"
integrity sha512-SvpajxIECi4JDUbGLefvNckmI+c2VWmP43qnEy/0eiwzRUsafg5DVSIWSzZe4d2vFX1u9nRDP46WCFV/PXVBGQ==
@@ -12139,7 +12134,7 @@ jss-plugin-default-unit@^10.5.1:
"@babel/runtime" "^7.3.1"
jss "10.10.0"
-jss-plugin-global@^10.5.1:
+jss-plugin-global@^10.10.0:
version "10.10.0"
resolved "https://registry.yarnpkg.com/jss-plugin-global/-/jss-plugin-global-10.10.0.tgz#1c55d3c35821fab67a538a38918292fc9c567efd"
integrity sha512-icXEYbMufiNuWfuazLeN+BNJO16Ge88OcXU5ZDC2vLqElmMybA31Wi7lZ3lf+vgufRocvPj8443irhYRgWxP+A==
@@ -12147,7 +12142,7 @@ jss-plugin-global@^10.5.1:
"@babel/runtime" "^7.3.1"
jss "10.10.0"
-jss-plugin-nested@^10.5.1:
+jss-plugin-nested@^10.10.0:
version "10.10.0"
resolved "https://registry.yarnpkg.com/jss-plugin-nested/-/jss-plugin-nested-10.10.0.tgz#db872ed8925688806e77f1fc87f6e62264513219"
integrity sha512-9R4JHxxGgiZhurDo3q7LdIiDEgtA1bTGzAbhSPyIOWb7ZubrjQe8acwhEQ6OEKydzpl8XHMtTnEwHXCARLYqYA==
@@ -12156,7 +12151,7 @@ jss-plugin-nested@^10.5.1:
jss "10.10.0"
tiny-warning "^1.0.2"
-jss-plugin-props-sort@^10.5.1:
+jss-plugin-props-sort@^10.10.0:
version "10.10.0"
resolved "https://registry.yarnpkg.com/jss-plugin-props-sort/-/jss-plugin-props-sort-10.10.0.tgz#67f4dd4c70830c126f4ec49b4b37ccddb680a5d7"
integrity sha512-5VNJvQJbnq/vRfje6uZLe/FyaOpzP/IH1LP+0fr88QamVrGJa0hpRRyAa0ea4U/3LcorJfBFVyC4yN2QC73lJg==
@@ -12164,7 +12159,7 @@ jss-plugin-props-sort@^10.5.1:
"@babel/runtime" "^7.3.1"
jss "10.10.0"
-jss-plugin-rule-value-function@^10.5.1:
+jss-plugin-rule-value-function@^10.10.0:
version "10.10.0"
resolved "https://registry.yarnpkg.com/jss-plugin-rule-value-function/-/jss-plugin-rule-value-function-10.10.0.tgz#7d99e3229e78a3712f78ba50ab342e881d26a24b"
integrity sha512-uEFJFgaCtkXeIPgki8ICw3Y7VMkL9GEan6SqmT9tqpwM+/t+hxfMUdU4wQ0MtOiMNWhwnckBV0IebrKcZM9C0g==
@@ -12173,7 +12168,7 @@ jss-plugin-rule-value-function@^10.5.1:
jss "10.10.0"
tiny-warning "^1.0.2"
-jss-plugin-vendor-prefixer@^10.5.1:
+jss-plugin-vendor-prefixer@^10.10.0:
version "10.10.0"
resolved "https://registry.yarnpkg.com/jss-plugin-vendor-prefixer/-/jss-plugin-vendor-prefixer-10.10.0.tgz#c01428ef5a89f2b128ec0af87a314d0c767931c7"
integrity sha512-UY/41WumgjW8r1qMCO8l1ARg7NHnfRVWRhZ2E2m0DMYsr2DD91qIXLyNhiX83hHswR7Wm4D+oDYNC1zWCJWtqg==
@@ -12182,7 +12177,7 @@ jss-plugin-vendor-prefixer@^10.5.1:
css-vendor "^2.0.8"
jss "10.10.0"
-jss@10.10.0, jss@^10.5.1:
+jss@10.10.0, jss@^10.10.0:
version "10.10.0"
resolved "https://registry.yarnpkg.com/jss/-/jss-10.10.0.tgz#a75cc85b0108c7ac8c7b7d296c520a3e4fbc6ccc"
integrity sha512-cqsOTS7jqPsPMjtKYDUpdFC0AbhYFLTcuGRqymgmdJIeQ8cH7+AgX7YSgQy79wXloZq2VvATYxUOUQEvS1V/Zw==
@@ -13400,13 +13395,13 @@ normalize-url@^6.0.1:
resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-6.1.0.tgz#40d0885b535deffe3f3147bec877d05fe4c5668a"
integrity sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==
-notistack@^1.0.3:
- version "1.0.10"
- resolved "https://registry.yarnpkg.com/notistack/-/notistack-1.0.10.tgz#8db90830034383467a04184f1fa8ff77f4fc58a5"
- integrity sha512-z0y4jJaVtOoH3kc3GtNUlhNTY+5LE04QDeLVujX3VPhhzg67zw055mZjrBF+nzpv3V9aiPNph1EgRU4+t8kQTQ==
+notistack@^3.0.2:
+ version "3.0.2"
+ resolved "https://registry.yarnpkg.com/notistack/-/notistack-3.0.2.tgz#009799c3fccddeffac58565ba1657d27616dfabd"
+ integrity sha512-0R+/arLYbK5Hh7mEfR2adt0tyXJcCC9KkA2hc56FeWik2QN6Bm/S4uW+BjzDARsJth5u06nTjelSw/VSnB1YEA==
dependencies:
clsx "^1.1.0"
- hoist-non-react-statics "^3.3.0"
+ goober "^2.0.33"
npm-run-path@^2.0.0:
version "2.0.2"
@@ -14107,11 +14102,6 @@ popmotion@11.0.3:
style-value-types "5.0.0"
tslib "^2.1.0"
-popper.js@1.16.1-lts:
- version "1.16.1-lts"
- resolved "https://registry.yarnpkg.com/popper.js/-/popper.js-1.16.1-lts.tgz#cf6847b807da3799d80ee3d6d2f90df8a3f50b05"
- integrity sha512-Kjw8nKRl1m+VrSFCoVGPph93W/qrSO7ZkqPpTf7F4bk/sqcfWK019dWBUpE/fBOsOQY1dks/Bmcbfn1heM/IsA==
-
posix-character-classes@^0.1.0:
version "0.1.1"
resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab"
@@ -15139,7 +15129,7 @@ react-is@^16.13.1, react-is@^16.6.0, react-is@^16.7.0:
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4"
integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==
-"react-is@^16.8.0 || ^17.0.0", react-is@^17.0.1:
+react-is@^17.0.1:
version "17.0.2"
resolved "https://registry.yarnpkg.com/react-is/-/react-is-17.0.2.tgz#e691d4a8e9c789365655539ab372762b0efb54f0"
integrity sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==
@@ -15317,7 +15307,7 @@ react-spring@^8.0.27:
"@babel/runtime" "^7.3.1"
prop-types "^15.5.8"
-react-transition-group@^4.4.0, react-transition-group@^4.4.5:
+react-transition-group@^4.4.5:
version "4.4.5"
resolved "https://registry.yarnpkg.com/react-transition-group/-/react-transition-group-4.4.5.tgz#e53d4e3f3344da8521489fbef8f2581d42becdd1"
integrity sha512-pZcd1MCJoiKiBR2NRxeCRg13uCXbydPnmB4EOeRrY7480qNWO8IIgQG6zlDkm6uRMsURXPuKq0GWtiM59a5Q6g==