Skip to content

Commit 19a939e

Browse files
committed
rework imports; disable babel.config.json for now
1 parent fd976d2 commit 19a939e

19 files changed

+23
-21
lines changed

components/Editor.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import { Alert, Skeleton, Snackbar, styled } from '@mui/material';
1+
import { Alert, Skeleton, Snackbar } from '@mui/material';
22
import { ClipboardEvent, Suspense, lazy, useState } from 'react';
33

4+
import { styled } from '@mui/material/styles';
45
import uploadFileToS3 from 'util/s3';
56

67
const HelloWorldEditor = lazy(() => import('hello-world-editor'));

components/FeedWrapper.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { styled } from '@mui/material';
1+
import { styled } from '@mui/material/styles';
22

33
const FeedWrapper = styled('div', { label: 'FeedWrapper' })`
44
width: calc(33% - ${(props) => props.theme.spacing(2)});

components/Footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Suspense, lazy, memo, useEffect, useState } from 'react';
22

33
import Help from './Help';
4-
import { styled } from '@mui/material';
4+
import { styled } from '@mui/material/styles';
55

66
const Debug = lazy(() => import('components/internal/Debug'));
77

components/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Login from './Login';
2-
import { styled } from '@mui/material';
2+
import { styled } from '@mui/material/styles';
33

44
const StyledHeader = styled('header')`
55
position: fixed;

components/Help.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
} from '@mui/material';
1212
import { F, defineMessages, useIntl } from 'i18n';
1313
import { MouseEvent, useEffect, useState } from 'react';
14-
import { styled, useTheme } from '@mui/material';
14+
import { styled, useTheme } from '@mui/material/styles';
1515

1616
import { $Experiment } from 'app/experiments';
1717
import Cookies from 'js-cookie';

components/ItemWrapper.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { PropsWithChildren } from 'react';
2-
import { styled } from '@mui/material';
2+
import { styled } from '@mui/material/styles';
33

44
const StyledItemWrapper = styled('div', { label: 'ItemWrapper' })`
55
padding-bottom: 0;

components/content/ContentBase.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import { Content, UserPublic } from 'data/graphql-generated';
2-
import { CssBaseline, GlobalStyles, ThemeProvider } from '@mui/material';
2+
import { CssBaseline, GlobalStyles } from '@mui/material';
33
import { Grid, Typography, styled } from 'components';
44
import { themeGlobalCss, themes } from 'styles/theme';
55

66
import ContentHead from './ContentHead';
77
import { PropsWithChildren } from 'react';
88
import SiteMap from './SiteMap';
9+
import { ThemeProvider } from '@mui/material/styles';
910

1011
const Container = styled('div', { label: 'ContentBaseContainer' })`
1112
display: flex;

components/content/ContentHead.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { buildUrl, contentUrl, profileUrl } from 'util/url-factory';
33

44
import Head from 'next/head';
55
import { themes } from 'styles/theme';
6-
import { useTheme } from '@mui/material';
6+
import { useTheme } from 'components';
77

88
export default function ContentHead(props: {
99
content?: Content;

components/content/Nav.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Content, ContentMetaInfo } from 'data/graphql-generated';
22
import { Link, styled } from 'components';
3-
import { Palette, PaletteColor, useTheme } from '@mui/material';
3+
import { Palette, PaletteColor, useTheme } from '@mui/material/styles';
44
import { gql, useQuery } from '@apollo/client';
55

66
import ContentLink from 'components/ContentLink';

components/content/SiteMap.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Avatar, Box, IconButton, Link, TextField, styled } from 'components';
1+
import { Avatar, Box, IconButton, Link, TextField, styled, useTheme } from 'components';
22
import { Content, SiteMapAndUserQuery } from 'data/graphql-generated';
33
import { F, defineMessages, useIntl } from 'i18n';
44
import { FormEvent, ReactNode, useContext, useEffect, useState } from 'react';
@@ -15,7 +15,6 @@ import baseTheme from 'styles';
1515
import constants from 'util/constants';
1616
import { transientOptions } from 'util/css';
1717
import { useRouter } from 'next/router';
18-
import { useTheme } from '@mui/material';
1918

2019
export const SITE_MAP_WIDTH = 175;
2120

0 commit comments

Comments
 (0)