Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

Commit

Permalink
chore: export Main component as default
Browse files Browse the repository at this point in the history
  • Loading branch information
marcomontalbano committed Jun 10, 2024
1 parent fa4ca6c commit 4f3c1f1
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions packages/app/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import {
ErrorBoundary,
MetaTags,
TokenProvider,
createApp
createApp,
type ClAppProps
} from '@commercelayer/app-elements'
import '@commercelayer/app-elements/style.css'
import { StrictMode } from 'react'
Expand All @@ -12,8 +13,8 @@ import { App } from './App'

const isDev = Boolean(import.meta.env.DEV)

createApp(
(props) => (
const Main: React.FC<ClAppProps> = (props) => {
return (
<StrictMode>
<ErrorBoundary hasContainer>
<SWRConfig
Expand All @@ -37,6 +38,9 @@ createApp(
</SWRConfig>
</ErrorBoundary>
</StrictMode>
),
'promotions'
)
)
}

export default Main

createApp(Main, 'promotions')

0 comments on commit 4f3c1f1

Please sign in to comment.