Skip to content

Commit

Permalink
Add user type to Page
Browse files Browse the repository at this point in the history
  • Loading branch information
ddrosario committed Mar 11, 2024
1 parent 852dd6f commit d86b93c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion client/src/stories/Page/Page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@ import React from 'react';
import { Header } from '../Header/Header.jsx';
import './page.css';

/**
* @typedef User
* @property {string} name

Check warning on line 8 in client/src/stories/Page/Page.jsx

View workflow job for this annotation

GitHub Actions / CI

Missing JSDoc @Property "name" description
*/

export const Page = () => {
const [user, setUser] = React.useState(null);
const [user, setUser] = React.useState(/** @type {?User} */ (null));

return (
<article>
Expand Down

0 comments on commit d86b93c

Please sign in to comment.