Skip to content

Commit

Permalink
Merge pull request #191 from gabrieltemtsen/multichain
Browse files Browse the repository at this point in the history
feat: add explanation for solo vs open bounties on the front end (#95)
  • Loading branch information
picsoritdidnthappen authored Jun 21, 2024
2 parents c637825 + 916ebed commit 48f641d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/components/global/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { useDynamicContext } from '@dynamic-labs/sdk-react-core';
import { Switch } from '@mui/material';
import { useRouter } from 'next/navigation';
import { useState } from 'react';
import { IoIosInformationCircleOutline } from 'react-icons/io';
import { toast } from 'react-toastify';

import ButtonCTA from '@/components/ui/ButtonCTA';
Expand Down Expand Up @@ -91,6 +92,10 @@ const Form = () => {
onChange={(e) => setAmount(e.target.value)}
className='border bg-transparent border-[#D1ECFF] py-2 px-2 rounded-md mb-4'
/>
<div className='flex text-balance gap-2 text-xs mb-2 items-center'>
<IoIosInformationCircleOutline /> a 2.5% fee is deducted from completed
bounties
</div>

<div className='flex items-center justify-start gap-2'>
<span>{isSoloBounty ? 'Solo Bounty' : 'Open Bounty'}</span>
Expand All @@ -100,6 +105,14 @@ const Form = () => {
inputProps={{ 'aria-label': 'controlled' }}
/>
</div>
<div className=' text-xs'>
<span className='flex gap-2 items-center max-w-md '>
<IoIosInformationCircleOutline />
{isSoloBounty
? 'you are the sole bounty contributor'
: 'users can add additional funds to your bounty'}
</span>
</div>

<button
className={`flex flex-row items-center justify-center ${
Expand Down

0 comments on commit 48f641d

Please sign in to comment.