diff --git a/docs/data/base/components/popper/SimplePopper.js b/docs/data/base/components/popper/SimplePopper.js index 7bdff93caccf33..7caac16c17bcc5 100644 --- a/docs/data/base/components/popper/SimplePopper.js +++ b/docs/data/base/components/popper/SimplePopper.js @@ -2,16 +2,6 @@ import * as React from 'react'; import PopperUnstyled from '@mui/base/PopperUnstyled'; import { styled } from '@mui/system'; -const StyledPopperDiv = styled('div')( - ({ theme }) => ` - padding: 0.5rem; - border: 1px solid; - background-color: ${theme.palette.mode === 'dark' ? '#121212' : '#fff'}; - opacity: 1; - margin: 0.25rem 0px; -`, -); - export default function SimplePopper() { const [anchorEl, setAnchorEl] = React.useState(null); @@ -33,3 +23,13 @@ export default function SimplePopper() { ); } + +const StyledPopperDiv = styled('div')( + ({ theme }) => ` + padding: 0.5rem; + border: 1px solid; + background-color: ${theme.palette.mode === 'dark' ? '#121212' : '#fff'}; + opacity: 1; + margin: 0.25rem 0px; +`, +); diff --git a/docs/data/base/components/popper/SimplePopper.tsx b/docs/data/base/components/popper/SimplePopper.tsx index 551c6911ee4f27..9c67d502aa85d9 100644 --- a/docs/data/base/components/popper/SimplePopper.tsx +++ b/docs/data/base/components/popper/SimplePopper.tsx @@ -2,16 +2,6 @@ import * as React from 'react'; import PopperUnstyled from '@mui/base/PopperUnstyled'; import { styled, Theme } from '@mui/system'; -const StyledPopperDiv = styled('div')( - ({ theme }: { theme: Theme }) => ` - padding: 0.5rem; - border: 1px solid; - background-color: ${theme.palette.mode === 'dark' ? '#121212' : '#fff'}; - opacity: 1; - margin: 0.25rem 0px; -`, -); - export default function SimplePopper() { const [anchorEl, setAnchorEl] = React.useState(null); @@ -33,3 +23,13 @@ export default function SimplePopper() { ); } + +const StyledPopperDiv = styled('div')( + ({ theme }: { theme: Theme }) => ` + padding: 0.5rem; + border: 1px solid; + background-color: ${theme.palette.mode === 'dark' ? '#121212' : '#fff'}; + opacity: 1; + margin: 0.25rem 0px; +`, +);