Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions components/hackathons/submissions/SubmissionForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1081,15 +1081,17 @@ const SubmissionFormContent: React.FC<SubmissionFormContentProps> = ({
<div key='step-1' className='space-y-6'>
<div className='flex items-center justify-between'>
<div></div>
<Button
type='button'
variant='outline'
size='sm'
onClick={handleFillMockData}
className='border-gray-600 text-gray-300 hover:bg-gray-700 hover:text-white'
>
Fill with Mock Data
</Button>
{process.env.NODE_ENV === 'development' && (
<Button
type='button'
variant='outline'
size='sm'
onClick={handleFillMockData}
className='border-gray-600 text-gray-300 hover:bg-gray-700 hover:text-white'
>
Fill with Mock Data
</Button>
)}
</div>
<FormField
control={form.control}
Expand Down
3 changes: 2 additions & 1 deletion components/hackathons/submissions/submissionTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,8 @@ const SubmissionTabContent: React.FC<SubmissionTabContentProps> = ({
{!isLoadingMySubmission &&
!mySubmission &&
isAuthenticated &&
isRegistered && (
isRegistered &&
status !== 'upcoming' && (
<div className='mb-8 rounded-lg border border-dashed border-gray-700 bg-gray-800/20 p-8 text-center'>
<p className='mb-4 text-gray-400'>
You haven't submitted a project yet.
Expand Down
Loading