diff --git a/packages/client/src/pages/contribute/ContributeLanding.tsx b/packages/client/src/pages/contribute/ContributeLanding.tsx index eb032f38..5272fd17 100644 --- a/packages/client/src/pages/contribute/ContributeLanding.tsx +++ b/packages/client/src/pages/contribute/ContributeLanding.tsx @@ -1,16 +1,19 @@ import { Typography, Box, Stack, Button } from '@mui/material'; import { useNavigate } from 'react-router-dom'; import { useStudy } from '../../context/Study.context'; +import { TagProvider, useTag } from '../../context/Tag.context'; -export const ContributeLanding: React.FC = () => { +const ContributeLandingInternal: React.FC = () => { const navigate = useNavigate(); const { study } = useStudy(); + const { tag } = useTag(); const enterTagging = () => { navigate('/contribute/tagging'); }; // TODO: Add in check for training completion + return ( <> {study && ( @@ -22,13 +25,21 @@ export const ContributeLanding: React.FC = () => { Study: {study.name} Description: {study.description} Instructions: {study.instructions} - + )} ); }; + +export const ContributeLanding: React.FC = () => { + return ( + + + + ); +}; diff --git a/packages/client/src/pages/contribute/TaggingInterface.tsx b/packages/client/src/pages/contribute/TaggingInterface.tsx index 84b8dc26..edb6f3bd 100644 --- a/packages/client/src/pages/contribute/TaggingInterface.tsx +++ b/packages/client/src/pages/contribute/TaggingInterface.tsx @@ -4,24 +4,21 @@ import { TagForm } from '../../components/contribute/TagForm.component'; import { useStudy } from '../../context/Study.context'; import { useEffect, useState } from 'react'; import { useCompleteTagMutation } from '../../graphql/tag/tag'; -import { NoTagNotification } from '../../components/contribute/NoTagNotification.component'; import { Study } from '../../graphql/graphql'; import { TagProvider, useTag } from '../../context/Tag.context'; +import { NoTagNotification } from '../../components/contribute/NoTagNotification.component'; export const TaggingInterface: React.FC = () => { const { study } = useStudy(); - // TODO: View for when there is no study vs when there is no tag return ( - <> - - {study && ( - <> - - - )} - - + + {study && ( + <> + + + )} + ); };