Skip to content

Commit

Permalink
feat: Add Submit button while previewing a new post
Browse files Browse the repository at this point in the history
  • Loading branch information
itexpert120 committed Dec 24, 2023
1 parent e546fa0 commit ef0332c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/devhub/page/create.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,22 @@ return (
}}
/>
</div>
<button
data-testid="submit-create-post"
style={{
width: "7rem",
backgroundColor: "#0C7283",
color: "#f3f3f3",
}}
disabled={
state.seekingFunding &&
(!state.amount || state.amount < 1)
}
className="btn btn-light my-2 p-3"
onClick={onSubmit}
>
Submit
</button>
</div>
)}
</div>
Expand Down

0 comments on commit ef0332c

Please sign in to comment.