[WIP] Adding DynamicProvider
This commit is contained in:
parent
46be9fd0d6
commit
43bec76838
6 changed files with 25 additions and 0 deletions
21
src/components/core/Provider/Provider.tsx
Normal file
21
src/components/core/Provider/Provider.tsx
Normal file
|
@ -0,0 +1,21 @@
|
|||
import React from 'react';
|
||||
import { Theme } from '../../../types/index';
|
||||
|
||||
type DynamicProviderProps = { theme: Theme };
|
||||
|
||||
export class DynamicProvider extends React.Component {
|
||||
theme: Theme
|
||||
|
||||
constructor(props: DynamicProviderProps) {
|
||||
super({ });
|
||||
this.theme = props.theme;
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
<div className="dynamic-root">
|
||||
|
||||
</div>
|
||||
);
|
||||
}
|
||||
};
|
1
src/components/core/Provider/index.ts
Normal file
1
src/components/core/Provider/index.ts
Normal file
|
@ -0,0 +1 @@
|
|||
export { DynamicProvider } from './Provider';
|
|
@ -1 +1,2 @@
|
|||
export { DynamicProvider } from './Provider/index';
|
||||
export { ThemeBuilder } from './Theme/index';
|
|
@ -1,3 +1,4 @@
|
|||
export {
|
||||
DynamicProvider,
|
||||
ThemeBuilder,
|
||||
} from './core/index';
|
0
src/components/typography/Button/index.ts
Normal file
0
src/components/typography/Button/index.ts
Normal file
|
@ -1,4 +1,5 @@
|
|||
export {
|
||||
DynamicProvider,
|
||||
ThemeBuilder,
|
||||
} from './components/index';
|
||||
|
||||
|
|
Loading…
Reference in a new issue