diff options
| author | Paweł Bernaciak <pawelbernaciak@zohomail.eu> | 2023-10-21 11:55:50 +0200 |
|---|---|---|
| committer | Paweł Bernaciak <pawelbernaciak@zohomail.eu> | 2023-10-21 11:55:50 +0200 |
| commit | 2ef3bdcd89731c1ed9cb7528181d19b2d9169bb5 (patch) | |
| tree | 9aa6d907425d3609ab9ae4affcf5b86ef794a6da /frontend/src/index.tsx | |
| parent | 12fef7cbaf2073f9cc349ed765ea140be0259d8e (diff) | |
Add basic frontend to test login
Diffstat (limited to 'frontend/src/index.tsx')
| -rw-r--r-- | frontend/src/index.tsx | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/frontend/src/index.tsx b/frontend/src/index.tsx new file mode 100644 index 0000000..162d1a1 --- /dev/null +++ b/frontend/src/index.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import ReactDOM from 'react-dom/client'; +import App from './App'; +import reportWebVitals from './reportWebVitals'; +import { GoogleOAuthProvider } from '@react-oauth/google'; + +const rootElem: HTMLElement = document.getElementById('root')!; + +const root = ReactDOM.createRoot(rootElem); +root.render( + <GoogleOAuthProvider clientId='84022739350-83723nr55j7t1ptmhrkn1u7aq7nfo3he.apps.googleusercontent.com'> + <React.StrictMode> + <App /> + </React.StrictMode> + </GoogleOAuthProvider> +); + +// If you want to start measuring performance in your app, pass a function +// to log results (for example: reportWebVitals(console.log)) +// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals +reportWebVitals(null); |
