-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
Add remote-dom components for Admin
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@shopify/ui-extensions-react': patch | ||
'@shopify/ui-extensions': patch | ||
--- | ||
|
||
Add new remote-dom components for Admin |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
export {extend, extension} from '@shopify/ui-extensions/admin'; | ||
|
||
export * from './admin/components'; | ||
export * from './admin/hooks'; | ||
export {render, reactExtension} from './admin/render'; |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
import {render, Badge} from '@shopify/ui-extensions-react/admin'; | ||
import { | ||
reactExtension, | ||
Badge, | ||
} from '@shopify/ui-extensions-react/admin'; | ||
|
||
render('Playground', () => <App />); | ||
reactExtension('Playground', () => <App />); | ||
|
||
function App() { | ||
return ( | ||
<Badge | ||
tone="info" | ||
> | ||
Fulfilled | ||
</Badge> | ||
); | ||
return <Badge tone="info">Fulfilled</Badge>; | ||
} |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
import {render, Box} from '@shopify/ui-extensions-react/admin'; | ||
import { | ||
reactExtension, | ||
Box, | ||
} from '@shopify/ui-extensions-react/admin'; | ||
|
||
render('Playground', () => <App />); | ||
reactExtension('Playground', () => <App />); | ||
|
||
function App() { | ||
return ( | ||
<Box padding="base"> | ||
Box | ||
</Box> | ||
); | ||
return <Box padding="base">Box</Box>; | ||
} |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.