File tree Expand file tree Collapse file tree 1 file changed +6
-18
lines changed
Expand file tree Collapse file tree 1 file changed +6
-18
lines changed Original file line number Diff line number Diff line change 11import * as React from 'react' ;
2- import { CopyToClipboard } from 'react-copy-to-clipboard' ;
32import Highlight , { defaultProps } from 'prism-react-renderer' ;
4- import {
5- Tabs ,
6- TabItem ,
7- Flex ,
8- View ,
9- Button ,
10- useTheme ,
11- } from '@aws-amplify/ui-react' ;
3+ import { Divider , Flex , View , useTheme } from '@aws-amplify/ui-react' ;
124import { CopyButton } from './CopyButton' ;
135
146interface DemoProps {
@@ -50,16 +42,12 @@ export const Demo = ({
5042 < View overflow = "auto" padding = "5px" >
5143 { children }
5244 </ View >
45+ < Divider
46+ margin = "20px 0 0"
47+ border = { `2px solid ${ tokens . colors . border . secondary } ` }
48+ />
5349 { propControls && (
54- < Tabs >
55- < TabItem title = "Props" >
56- < View padding = { `${ tokens . space . medium } 0` } > { propControls } </ View >
57- </ TabItem >
58- { /* Temporarily removing the Theme tab until we figure out a way
59- to let customers dynamically edit a theme object in the demos
60- */ }
61- { /* {themeControls ? <TabItem title="Theme">{themeControls}</TabItem> : null } */ }
62- </ Tabs >
50+ < View padding = { `${ tokens . space . medium } 0` } > { propControls } </ View >
6351 ) }
6452 </ Flex >
6553 < View
You can’t perform that action at this time.
0 commit comments