Skip to content
This repository has been archived by the owner on Feb 22, 2025. It is now read-only.

Commit

Permalink
fix(buildteams): 🐛 Missing status badges of application status
Browse files Browse the repository at this point in the history
  • Loading branch information
Nudelsuppe42 committed Dec 23, 2023
1 parent c5be0f4 commit 12b07fb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/pages/teams/[team]/manage/review/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
import Page from '../../../../../components/Page';
import SettingsTabs from '../../../../../components/SettingsTabs';
import { useUser } from '../../../../../hooks/useUser';
import fetcher from '../../../../../utils/Fetcher';
import { ApplicationQuestions } from '../../../../../utils/application/ApplicationQuestions';
import fetcher from '../../../../../utils/Fetcher';

const Apply: NextPage = ({ team, id }: any) => {
const theme = useMantineTheme();
Expand Down Expand Up @@ -224,7 +224,7 @@ function statusToString(status: string) {
case 'ACCEPTED':
return 'Accepted';
case 'DECLINED':
return 'Declined';
return 'Rejected';
case 'TRIAL':
return 'Trial Accepted';
default:
Expand Down
10 changes: 9 additions & 1 deletion src/pages/teams/[team]/manage/review/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,18 @@ const Review = ({ team }: any) => {
<Badge variant="gradient" gradient={{ from: 'orange', to: 'yellow' }}>
Needs Review
</Badge>
) : (
) : a.status == 'ACCEPTED' ? (
<Badge variant="gradient" gradient={{ from: 'green', to: 'lime' }}>
Accepted
</Badge>
) : a.status == 'TRIAL' ? (
<Badge variant="gradient" gradient={{ from: 'green', to: 'lime' }}>
Trial
</Badge>
) : (
<Badge variant="gradient" gradient={{ from: 'red', to: 'orange' }}>
Rejected
</Badge>
)}
</Table.Td>
<Table.Td>{a.trial ? 'Yes' : 'No'}</Table.Td>
Expand Down

0 comments on commit 12b07fb

Please sign in to comment.