Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
feat: improve checkbox ui for legal disclaimer (#310)
Browse files Browse the repository at this point in the history
  • Loading branch information
luizstacio committed Jun 21, 2022
1 parent 49a2d4e commit fb83b23
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
4 changes: 4 additions & 0 deletions packages/app/src/styles/components/welcome-page.css
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,8 @@
@apply hidden;
}
}

#accept-agreement {
transform: translateY(5px);
}
}
27 changes: 13 additions & 14 deletions packages/app/src/systems/Welcome/components/WelcomeDone.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,20 @@ export function WelcomeDone() {
Now you&apos;re ready to swap and pool <b>test assets</b> using Fuel:
the fastest modular execution layer.
</p>
<div className="flex justify-center items-center mb-6">
<input
aria-label="Accept the use agreement"
id="accept-agreement"
checked={state.context.acceptAgreement}
onChange={(e) => {
send("ACCEPT_AGREEMENT", {
value: e.target.checked,
});
}}
className="h-5 w-5 mr-3 cursor-pointer"
type="checkbox"
/>
<div className="flex justify-center mb-6">
<label htmlFor="accept-agreement">
{" "}
<input
aria-label="Accept the use agreement"
id="accept-agreement"
checked={state.context.acceptAgreement}
onChange={(e) => {
send("ACCEPT_AGREEMENT", {
value: e.target.checked,
});
}}
className="h-5 w-5 mr-1 cursor-pointer"
type="checkbox"
/>{" "}
I have read and understand the{" "}
<Link isExternal href={DISCLAIMER_URL}>
legal disclaimer
Expand Down

0 comments on commit fb83b23

Please sign in to comment.