aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEug-VS <eug-vs@keemail.me>2020-02-18 02:02:51 +0300
committereug-vs <eug-vs@keemail.me>2020-03-28 00:25:29 +0300
commitecc7577fd3791c071a355f46c9da82d80cb72757 (patch)
tree42356043cc5a9655dafb85c187221453e026dbd3
parente2cc4ce099bb945471ec0011d76f463e67e6bce3 (diff)
downloadreact-benzin-button-styles.tar.gz
refactor!: rename BenzinThemeProvider -> Benzinbutton-styles
-rw-r--r--src/index.tsx6
-rw-r--r--src/lib/Benzin/Benzin.tsx (renamed from src/lib/BenzinThemeProvider/BenzinThemeProvider.tsx)4
-rw-r--r--src/lib/index.ts2
3 files changed, 6 insertions, 6 deletions
diff --git a/src/index.tsx b/src/index.tsx
index 9d32585..73536d7 100644
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -4,7 +4,7 @@ import ReactDOM from 'react-dom';
import { makeStyles, Link } from '@material-ui/core';
import {
- BenzinThemeProvider,
+ Benzin,
Header,
Window,
ContentSection,
@@ -66,7 +66,7 @@ const App: React.FC = () => {
};
return (
- <BenzinThemeProvider>
+ <Benzin>
<Header
logo={{
icon: Icon,
@@ -111,7 +111,7 @@ const App: React.FC = () => {
renderItem={renderItem}
/>
</Window>
- </BenzinThemeProvider>
+ </Benzin>
);
};
diff --git a/src/lib/BenzinThemeProvider/BenzinThemeProvider.tsx b/src/lib/Benzin/Benzin.tsx
index a7790bf..83ed0b0 100644
--- a/src/lib/BenzinThemeProvider/BenzinThemeProvider.tsx
+++ b/src/lib/Benzin/Benzin.tsx
@@ -39,7 +39,7 @@ const benzinTheme = createMuiTheme({
});
-const BenzinThemeProvider: React.FC = ({ children }) => (
+const Benzin: React.FC = ({ children }) => (
<ThemeProvider theme={benzinTheme}>
<CssBaseline />
{children}
@@ -47,5 +47,5 @@ const BenzinThemeProvider: React.FC = ({ children }) => (
);
-export default BenzinThemeProvider;
+export default Benzin;
diff --git a/src/lib/index.ts b/src/lib/index.ts
index a41dd39..1529443 100644
--- a/src/lib/index.ts
+++ b/src/lib/index.ts
@@ -2,5 +2,5 @@ export { default as Window } from './Window/Window';
export { default as Header } from './Header/Header';
export { default as ContentSection } from './ContentSection/ContentSection';
export { default as SmartList } from './SmartList/SmartList';
-export { default as BenzinThemeProvider } from './BenzinThemeProvider/BenzinThemeProvider';
+export { default as Benzin } from './Benzin/Benzin';
export { default as Button } from './Button/Button';