Skip to content
This repository has been archived by the owner on Mar 25, 2023. It is now read-only.

Commit

Permalink
Chore: update deprecated import
Browse files Browse the repository at this point in the history
  • Loading branch information
onpaws committed Aug 4, 2021
1 parent d476fe4 commit 5f9e1f7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tdesign/src/themes/muiTheme.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createMuiTheme } from "@material-ui/core/styles";
import { createTheme } from "@material-ui/core/styles";
// import { theme } from "./design"; // TODO: when we're ready, the MUI palette should consume from here

// import type {
Expand All @@ -8,7 +8,7 @@ import { createMuiTheme } from "@material-ui/core/styles";

// import { theme as coreTheme } from "./design";

export const defaultTheme = createMuiTheme(); // lets us reference MUI default style values below
export const defaultTheme = createTheme(); // lets us reference MUI default style values below

const breakpointValues = {
xs: 0,
Expand All @@ -19,7 +19,7 @@ const breakpointValues = {
xl: 1920,
};

export const muiTheme = createMuiTheme({
export const muiTheme = createTheme({
breakpoints: {
values: breakpointValues,
},
Expand Down Expand Up @@ -516,7 +516,7 @@ declare module "@material-ui/core/styles" {
smallHighlightedB: React.CSSProperties;
}

// allow configuration using `createMuiTheme`
// allow configuration using `createTheme`
interface TypographyVariantsOptions {
title1?: React.CSSProperties;
title2?: React.CSSProperties;
Expand Down

0 comments on commit 5f9e1f7

Please sign in to comment.