VandyHacks/vaken

View on GitHub
src/client/routes/dashboard/SponsorDash.tsx

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import React, { FunctionComponent, useContext } from 'react';
import { AuthContext } from '../../contexts/AuthContext';

export const SponsorDash: FunctionComponent = (): JSX.Element => {
    const currentUser = useContext(AuthContext);
    return <div>{currentUser.firstName}</div>;
};

export default SponsorDash;