Skip to content

Commit

Permalink
clients/rewards: use postSlot for percentage
Browse files Browse the repository at this point in the history
  • Loading branch information
emilwidlund committed Nov 2, 2023
1 parent 8e7c8a6 commit 6956893
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions clients/apps/web/src/components/Dashboard/UpfrontRewards.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,16 +115,14 @@ const PublicRewardsSetting = (props: {
</div>
</div>
<div className="flex w-[120px] items-center gap-3 py-2">
<span className="dark:text-polar-400 flex-shrink-0 text-gray-500">
%
</span>
<div className="flex-1">
<Input
className={
usePublicRewards
? 'dark:text-polar-100 font-medium text-black'
: 'dark:text-polar-400 text-gray-500'
}
postSlot="%"
disabled={!usePublicRewards}
value={contributorsShare}
placeholder={'50'}
Expand Down Expand Up @@ -153,11 +151,8 @@ const PublicRewardsSetting = (props: {
</div>
</div>
<div className="flex w-[120px] items-center gap-3 py-2">
<span className="dark:text-polar-400 flex-shrink-0 text-gray-500">
%
</span>
<div className="flex-1">
<Input disabled value={maintainerShare} />
<Input disabled value={maintainerShare} postSlot="%" />
</div>
</div>
</div>
Expand Down

0 comments on commit 6956893

Please sign in to comment.