generated from gravity-ui/package-example
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f1997f1
commit 32a4547
Showing
188 changed files
with
4,104 additions
and
2,619 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
import React from 'react'; | ||
|
||
import {MobileProvider, ThemeProvider} from '@gravity-ui/uikit'; | ||
|
||
import {DynamicView as DynamicViewBase} from '../../src/lib/core/components/View/DynamicView'; | ||
import {Spec} from '../../src/lib/core/types/specs'; | ||
import {FormValue} from '../../src/lib/core/types/value'; | ||
import {dynamicViewConfig} from '../../src/lib/kit/constants/config'; | ||
|
||
export const DynamicView = ({spec, value}: {spec: Spec; value: FormValue}) => { | ||
return <DynamicViewBase spec={spec} value={value} config={dynamicViewConfig} />; | ||
return ( | ||
<ThemeProvider> | ||
<MobileProvider> | ||
<DynamicViewBase spec={spec} value={value} config={dynamicViewConfig} /> | ||
</MobileProvider> | ||
</ThemeProvider> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.