Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsbajorics committed May 8, 2024
2 parents 0f3a394 + 4901949 commit ce050b7
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 174 deletions.
11 changes: 7 additions & 4 deletions app/root.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@ import {
isRouteErrorResponse,
} from '@remix-run/react';
import favicon from './assets/favicon.svg';
import resetStyles from './styles/reset.css?url';
import appStyles from './styles/app.css?url';

// Utopia TODO – fix this
// import resetStyles from './styles/reset.css?url'
// import appStyles from './styles/app.css?url'

import {Layout} from '~/components/Layout';

/**
Expand All @@ -35,8 +38,8 @@ export const shouldRevalidate = ({formMethod, currentUrl, nextUrl}) => {

export function links() {
return [
{rel: 'stylesheet', href: resetStyles},
{rel: 'stylesheet', href: appStyles},
// { rel: 'stylesheet', href: resetStyles },
// { rel: 'stylesheet', href: appStyles },
{
rel: 'preconnect',
href: 'https://cdn.shopify.com',
Expand Down
161 changes: 0 additions & 161 deletions utopia/antd.utopia.js

This file was deleted.

19 changes: 10 additions & 9 deletions utopia/storyboard.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
import * as React from 'react';
import {Storyboard, RemixScene} from 'utopia-api';
import * as React from 'react'
import { Storyboard, RemixScene } from 'utopia-api'

import {getLoadContext} from '../server';
import {Image} from '@shopify/hydrogen';
import { getLoadContext } from '../server-context-getter'
import { Image } from '@shopify/hydrogen'

const contextGetter = getLoadContext(
{
PUBLIC_STORE_DOMAIN: 'praiseful-pear.myshopify.com',
PUBLIC_STOREFRONT_API_TOKEN: '541564e540184b9648c529272ffa4b53',
PUBLIC_STOREFRONT_API_TOKEN:
'541564e540184b9648c529272ffa4b53',
},
{
waitUntil: () => {},
},
// Demo cart ID obtained from https://mock.shop/create-cart
'gid://shopify/Cart/Z2NwLXVzLWNlbnRyYWwxOjAxSEhKQ0I3RFoySlY3Mk5ORlhUVEo2RjhU',
);
)

export var storyboard = (
<Storyboard>
<RemixScene
data-label="Desktop"
data-label='Desktop'
style={{
position: 'absolute',
width: 1440,
Expand All @@ -29,7 +30,7 @@ export var storyboard = (
overflow: 'hidden',
}}
getLoadContext={contextGetter}
commentId="bjt"
commentId='bjt'
/>
</Storyboard>
);
)

0 comments on commit ce050b7

Please sign in to comment.