Skip to content

Added vercel analytics and fixed warning #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25,685 changes: 20,497 additions & 5,188 deletions client/package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"@iconify/react": "^4.1.1",
"@mui/lab": "^5.0.0-alpha.147",
"@mui/material": "^5.14.12",
"@vercel/analytics": "^1.2.2",
"apexcharts": "^3.43.0",
"date-fns": "^2.30.0",
"history": "^5.3.0",
Expand Down
3 changes: 3 additions & 0 deletions client/src/main.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { Suspense } from 'react';
import ReactDOM from 'react-dom/client';
import { BrowserRouter } from 'react-router-dom';
// eslint-disable-next-line import/no-extraneous-dependencies
import { Analytics } from "@vercel/analytics/react";
import { HelmetProvider } from 'react-helmet-async';

import App from './app';
Expand All @@ -13,6 +15,7 @@ root.render(
<HelmetProvider>
<BrowserRouter>
<Suspense>
<Analytics />
<App />
</Suspense>
</BrowserRouter>
Expand Down
1 change: 1 addition & 0 deletions client/src/stories/Button.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';

import './button.css';

/**
Expand Down
2 changes: 1 addition & 1 deletion client/src/stories/Header.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import PropTypes from 'prop-types';

import { Button } from './Button';
import './header.css';
import { Button } from './Button';

export const Header = ({ user, onLogin, onLogout, onCreateAccount }) => (
<header>
Expand Down
2 changes: 1 addition & 1 deletion client/src/stories/Page.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';

import { Header } from './Header';
import './page.css';
import { Header } from './Header';

export const Page = () => {
const [user, setUser] = React.useState();
Expand Down
2 changes: 1 addition & 1 deletion client/src/stories/Page.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// eslint-disable-next-line import/no-extraneous-dependencies
import { within, userEvent, expect } from '@storybook/test';
import { within, expect, userEvent } from '@storybook/test';

import { Page } from './Page';

Expand Down
2,258 changes: 986 additions & 1,272 deletions client/yarn.lock

Large diffs are not rendered by default.