feat: disable submit until valid
This commit is contained in:
@@ -95,7 +95,15 @@
|
||||
/>
|
||||
|
||||
<div class="submit">
|
||||
<Button type="submit">Share this study space!</Button>
|
||||
<Button
|
||||
type="submit"
|
||||
disabled={(spaceImg?.length || 0) === 0 ||
|
||||
!studySpaceData.location ||
|
||||
!studySpaceData.description ||
|
||||
!studySpaceData.building_location}
|
||||
>
|
||||
Share this study space!
|
||||
</Button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user