mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
* Fix webpack config for react Signed-off-by: Janne Savolainen <janne.savolainen@live.fi> * Introduce package for discovering html elements in unit tests Signed-off-by: Janne Savolainen <janne.savolainen@live.fi> * Switch to using discovery of html elements from package Signed-off-by: Janne Savolainen <janne.savolainen@live.fi> * Introduce competition for starting react application inside the Feature Signed-off-by: Janne Savolainen <janne.savolainen@live.fi> * Move stuff in application start to earlier timeslot having no real need to be done so late Signed-off-by: Janne Savolainen <janne.savolainen@live.fi> * Switch to using react application root feature being more friendly to extending Signed-off-by: Janne Savolainen <janne.savolainen@live.fi> * Switch to using more familiar pattern of higher order components for wrapping react application Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com> Signed-off-by: Janne Savolainen <janne.savolainen@live.fi> * Adapt to more familiar pattern for higher order components Signed-off-by: Janne Savolainen <janne.savolainen@live.fi> * Rename feature for clarity Signed-off-by: Janne Savolainen <janne.savolainen@live.fi> --------- Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
40 lines
855 B
TypeScript
40 lines
855 B
TypeScript
/**
|
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
*/
|
|
|
|
import React from "react";
|
|
import { createTheme, ThemeProvider } from "@material-ui/core";
|
|
|
|
export const defaultMuiBaseTheme = createTheme({
|
|
props: {
|
|
MuiIconButton: {
|
|
color: "inherit",
|
|
},
|
|
MuiSvgIcon: {
|
|
fontSize: "inherit",
|
|
},
|
|
MuiTooltip: {
|
|
placement: "top",
|
|
},
|
|
},
|
|
overrides: {
|
|
MuiIconButton: {
|
|
root: {
|
|
"&:hover": {
|
|
color: "var(--iconActiveColor)",
|
|
backgroundColor: "var(--iconActiveBackground)",
|
|
},
|
|
},
|
|
},
|
|
},
|
|
});
|
|
|
|
export function DefaultProps(App: React.ComponentType | React.FunctionComponent) {
|
|
return (
|
|
<ThemeProvider theme= { defaultMuiBaseTheme } >
|
|
<App />
|
|
</ThemeProvider>
|
|
);
|
|
}
|