Skip to content

Instantly share code, notes, and snippets.

@nutterbrand
Last active January 3, 2021 03:30
Show Gist options
  • Save nutterbrand/5401a143c9f2e786003748c76c90b1e6 to your computer and use it in GitHub Desktop.
Save nutterbrand/5401a143c9f2e786003748c76c90b1e6 to your computer and use it in GitHub Desktop.
pages/index.js
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