-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(subscriptions-ui): some cosmetic changes
- Loading branch information
1 parent
3d397d9
commit c49bcaa
Showing
4 changed files
with
59 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,52 @@ | ||
import React from "react"; | ||
import ReactDOM from "react-dom/client"; | ||
import { createBrowserRouter, RouterProvider } from "react-router-dom"; | ||
import React from 'react' | ||
import ReactDOM from 'react-dom/client' | ||
import { createBrowserRouter, RouterProvider } from 'react-router-dom' | ||
|
||
import { App as QuerySample } from "../aidbox-querying/src/app"; | ||
import { App as SubsSample } from "../aidbox-subscription/frontend/app"; | ||
import { App as Phr } from "../personal-health-record/src/app"; | ||
import { App as QuerySample } from '../aidbox-querying/src/app' | ||
import { App as SubsSample } from '../aidbox-subscription/frontend/app' | ||
import { App as Phr } from '../personal-health-record/src/app' | ||
|
||
import App from "./App"; | ||
import "./index.css"; | ||
import { Layout } from "./Layout"; | ||
import App from './App' | ||
import './index.css' | ||
import { Layout } from './Layout' | ||
|
||
const router = createBrowserRouter([ | ||
{ | ||
path: "/", | ||
path: '/', | ||
element: ( | ||
<Layout> | ||
<App /> | ||
</Layout> | ||
), | ||
) | ||
}, | ||
{ | ||
path: "phr", | ||
path: 'phr', | ||
element: ( | ||
<Layout> | ||
<Phr /> | ||
</Layout> | ||
), | ||
) | ||
}, | ||
{ | ||
path: "complex-query", | ||
path: 'complex-query', | ||
element: ( | ||
<Layout> | ||
<QuerySample /> | ||
</Layout> | ||
), | ||
) | ||
}, | ||
{ | ||
path: "subscriptions", | ||
path: 'subscriptions', | ||
element: ( | ||
<Layout> | ||
<SubsSample /> | ||
</Layout> | ||
), | ||
}, | ||
]); | ||
) | ||
} | ||
]) | ||
|
||
ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render( | ||
ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render( | ||
<React.StrictMode> | ||
<RouterProvider router={router} /> | ||
</React.StrictMode> | ||
); | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import react from "@vitejs/plugin-react"; | ||
import { defineConfig } from "vite"; | ||
import svgr from "vite-plugin-svgr"; | ||
import react from '@vitejs/plugin-react' | ||
import { defineConfig } from 'vite' | ||
import svgr from 'vite-plugin-svgr' | ||
|
||
// https://vitejs.dev/config/ | ||
export default defineConfig({ | ||
plugins: [ | ||
react(), | ||
svgr({ | ||
exportAsDefault: true, | ||
}), | ||
], | ||
}); | ||
exportAsDefault: true | ||
}) | ||
] | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters