Skip to content

Commit

Permalink
refactor: Embedded sample code (#531)
Browse files Browse the repository at this point in the history
  • Loading branch information
tumms2021389 authored Nov 4, 2024
1 parent abcd5af commit b6f9ac7
Show file tree
Hide file tree
Showing 8 changed files with 606 additions and 538 deletions.
12 changes: 6 additions & 6 deletions src/samples/AppSelector/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Route, Routes } from 'react-router-dom';

import EmbeddedTopLevel from '../Embedded/EmbeddedTopLevel';
import Embedded from '../Embedded';
import FullPortal from '../FullPortal';

// NOTE: You should update this to be the same value that's in
Expand All @@ -17,13 +17,13 @@ const AppSelector = () => {
return (
<div>
<Routes>
<Route path={`${baseURL}`} element={<EmbeddedTopLevel />} />
<Route path={`${baseURL}index.html`} element={<EmbeddedTopLevel />} />
<Route path={`${baseURL}embedded`} element={<EmbeddedTopLevel />} />
<Route path={`${baseURL}embedded.html`} element={<EmbeddedTopLevel />} />
<Route path={`${baseURL}`} element={<Embedded />} />
<Route path={`${baseURL}index.html`} element={<Embedded />} />
<Route path={`${baseURL}embedded`} element={<Embedded />} />
<Route path={`${baseURL}embedded.html`} element={<Embedded />} />
<Route path={`${baseURL}portal`} element={<FullPortal />} />
<Route path={`${baseURL}portal.html`} element={<FullPortal />} />
<Route path='*' element={<EmbeddedTopLevel />} />
<Route path='*' element={<Embedded />} />
</Routes>
</div>
);
Expand Down
Loading

0 comments on commit b6f9ac7

Please sign in to comment.