Skip to content

Commit e2de78b

Browse files
UI fixes (#451) (#453)
* fix: improve timeline input , ui improvement and fixes for participation tab * fix: implement 2fa for email and password login * fix: fix conflict * fix: fix submission form Co-authored-by: Nnaji Benjamin <60315147+Benjtalkshow@users.noreply.github.com>
1 parent fb76ae3 commit e2de78b

2 files changed

Lines changed: 13 additions & 10 deletions

File tree

components/hackathons/submissions/SubmissionForm.tsx

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,15 +1081,17 @@ const SubmissionFormContent: React.FC<SubmissionFormContentProps> = ({
10811081
<div key='step-1' className='space-y-6'>
10821082
<div className='flex items-center justify-between'>
10831083
<div></div>
1084-
<Button
1085-
type='button'
1086-
variant='outline'
1087-
size='sm'
1088-
onClick={handleFillMockData}
1089-
className='border-gray-600 text-gray-300 hover:bg-gray-700 hover:text-white'
1090-
>
1091-
Fill with Mock Data
1092-
</Button>
1084+
{process.env.NODE_ENV === 'development' && (
1085+
<Button
1086+
type='button'
1087+
variant='outline'
1088+
size='sm'
1089+
onClick={handleFillMockData}
1090+
className='border-gray-600 text-gray-300 hover:bg-gray-700 hover:text-white'
1091+
>
1092+
Fill with Mock Data
1093+
</Button>
1094+
)}
10931095
</div>
10941096
<FormField
10951097
control={form.control}

components/hackathons/submissions/submissionTab.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,8 @@ const SubmissionTabContent: React.FC<SubmissionTabContentProps> = ({
267267
{!isLoadingMySubmission &&
268268
!mySubmission &&
269269
isAuthenticated &&
270-
isRegistered && (
270+
isRegistered &&
271+
status !== 'upcoming' && (
271272
<div className='mb-8 rounded-lg border border-dashed border-gray-700 bg-gray-800/20 p-8 text-center'>
272273
<p className='mb-4 text-gray-400'>
273274
You haven't submitted a project yet.

0 commit comments

Comments
 (0)