Last active
January 3, 2021 03:30
-
-
Save nutterbrand/5401a143c9f2e786003748c76c90b1e6 to your computer and use it in GitHub Desktop.
pages/index.js
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
import React from "react"; | |
import { EmptyState, Layout, Page } from '@shopify/polaris'; | |
const img = 'https://cdn.shopify.com/s/files/1/0757/9955/files/empty-state.svg'; | |
const Index = () => ( | |
<Page> | |
<Layout> | |
<EmptyState | |
heading="Discount your products temporarily" | |
action={{ | |
content: 'Select products', | |
onAction: () => console.log('clicked'), | |
}} | |
image={img} | |
> | |
<p>Select products to change their price temporarily.</p> | |
</EmptyState> | |
</Layout> | |
</Page> | |
); | |
export default Index; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment