File tree Expand file tree Collapse file tree
components/hackathons/submissions Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments