Skip to content

Commit

Permalink
Create bounty form (#113)
Browse files Browse the repository at this point in the history
* Create bounty form

* Validate form fields (#112)

* Move external links to a single file
* Validate form fields in `/bounty/create`
* Validate form fields in `/bounty/<id>/sponsor`
* Validate form fields in `/bounty/<id>/exploit`

* Adding URL in proper file

* prettier

---------

Co-authored-by: Guilherme Dantas <[email protected]>
  • Loading branch information
claudioantonio and guidanoli authored Jun 7, 2024
1 parent 145fbae commit c788a75
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frontend/src/app/explore/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { BountyStatusBadgeGroup } from "../../components/bountyStatus";
import { HasConnectedAccount } from "../../components/hasConnectedAccount";
import { useBlockTimestamp } from "../../hooks/block";
import { getBountyStatus } from "../../utils/bounty";
import { GOOGLE_BOUNTY_CREATION_FORM_URL } from "../../utils/links";

const Bounty: FC<{
index: number;
Expand Down Expand Up @@ -90,8 +91,8 @@ const Explore: FC = () => {
<Stack>
<HasConnectedAccount>
<Flex mt={20} mr={20} justify="flex-end">
<Link href={"/bounty/create"}>
<Button size="lg">Submit bounty</Button>
<Link href={GOOGLE_BOUNTY_CREATION_FORM_URL}>
<Button size="lg">Create bounty</Button>
</Link>
</Flex>
</HasConnectedAccount>
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/utils/links.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ export const GH_README_URL = `${GH_REPO_URL}/blob/${GH_MAIN_BRANCH}/README.md`;
export const DISCORD_CHANNEL_URL =
"https://discord.com/channels/600597137524391947/1166042819782258788";
export const X_ACCOUNT_URL = "https://x.com/BugBusterApp";
export const GOOGLE_BOUNTY_CREATION_FORM_URL =
"https://forms.gle/h4EePFXG41Zwv48a7";

0 comments on commit c788a75

Please sign in to comment.