Skip to content

Commit

Permalink
fix: export PropsColorOverrides
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Mar 17, 2023
1 parent 3be6bac commit 90834b6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
5 changes: 3 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
// other
import theme from './theme';
import theme, { PropsColorOverrides } from './theme';

// modules
export * as components from './components';

// exports
export {
theme
theme,
type PropsColorOverrides
};
9 changes: 5 additions & 4 deletions src/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ declare module '@mui/material/styles' {
interface PaletteOptions extends CustomPaletteColors { }
}

export interface PropsColorOverrides {
tertiary: true;
white: true;
}

declare module '@mui/material' {
interface PropsColorOverrides {
tertiary: true;
white: true;
}
interface ButtonPropsColorOverrides extends PropsColorOverrides { }
}

Expand Down

0 comments on commit 90834b6

Please sign in to comment.