Skip to content

Commit

Permalink
favicon and hide cookie accept modal while editing
Browse files Browse the repository at this point in the history
  • Loading branch information
teleaziz committed May 4, 2021
1 parent 1f02941 commit f220a70
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions .env.production
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
SHOPIFY_STOREFRONT_API_TOKEN=dd0057d1e48d2d61ca8ec27b07d3c5e6
SHOPIFY_STORE_DOMAIN=builder-io-demo.myshopify.com
BUILDER_PUBLIC_KEY=303981477d1e41d08587796c8f3bf623
DEBUG=true
5 changes: 0 additions & 5 deletions blocks/ProductView/ProductView.builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ restrictedRegister(
LazyProductView,
{
name: 'ProductBox',
defaults: {
bindings: {
'component.options.renderSeo': 'false',
},
},
inputs: [
{
name: 'product',
Expand Down
5 changes: 5 additions & 0 deletions components/common/Head.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ const Head: FC<{ seoInfo: any }> = (props) => {
<NextHead>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="manifest" href="/site.webmanifest" key="site-manifest" />
<link
rel="icon"
type="image/png"
href="https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F2d86a5bb30f44d2db3564aa2962bb093"
/>
</NextHead>
</>
)
Expand Down
2 changes: 1 addition & 1 deletion components/common/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const InnerLayout: React.FC<{
<NoSSR>
<FeatureBar
title="This site uses cookies to improve your experience. By clicking, you agree to our Privacy Policy."
hide={acceptedCookies}
hide={Builder.isEditing ? builder.editingModel !== 'theme' : acceptedCookies}
action={
<Button onClick={() => onAcceptCookies()}>Accept cookies</Button>
}
Expand Down
Binary file removed public/favicon.ico
Binary file not shown.

0 comments on commit f220a70

Please sign in to comment.