Skip to content

Commit

Permalink
do not alias condaStoreTheme to theme
Browse files Browse the repository at this point in the history
  • Loading branch information
gabalafou committed Jan 31, 2024
1 parent 162e819 commit 542aab1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/theme.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,6 @@ export const condaStoreTheme = createTheme(baseTheme, {
}
});

export const theme = condaStoreTheme;

export const themeDecorator = (func: any) => (
<ThemeProvider theme={condaStoreTheme}>{func()}</ThemeProvider>
);
4 changes: 2 additions & 2 deletions test/testutils.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ThemeProvider } from "@mui/material";
import React from "react";
import { CondaSpecification } from "../src/common/models";
import { theme } from "../src/theme";
import { condaStoreTheme } from "../src/theme";

export const NAMESPACES = [
{
Expand Down Expand Up @@ -90,5 +90,5 @@ export const BUILD = {
};

export const mockTheme = (children: any) => {
return <ThemeProvider theme={theme}>{children}</ThemeProvider>;
return <ThemeProvider theme={condaStoreTheme}>{children}</ThemeProvider>;
};

0 comments on commit 542aab1

Please sign in to comment.