Skip to content

Commit

Permalink
Merge pull request #19 from interledger/18-layout-change
Browse files Browse the repository at this point in the history
Change layout
  • Loading branch information
Tymmmy authored Apr 29, 2024
2 parents 684f376 + 1d2bd51 commit 72ca11d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ export default function App() {
<Links />
</head>

<body className="bg-background h-screen text-primary flex justify-center items-center">
<div className="bg-foreground h-fit py-10 px-6 w-full md:w-3/4 shadow-md rounded-sm">
<body className="bg-foreground text-primary flex justify-center items-center h-screen">
<div className="w-full h-full p-20">
<DialogProvider>
<DialPadProvider>
<Outlet />
Expand Down
14 changes: 12 additions & 2 deletions app/routes/ilpay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,12 @@ export default function Ilpay() {
<div className="h-2/3 items-center justify-center flex flex-col gap-10 w-full max-w-sm">
<DialPad />
<div className="flex gap-2">
<Link to={`/request`}>
<Link
to={`/request`}
onClick={(e: React.MouseEvent<HTMLElement>) => {
if (Number(amountValue) === 0) e.preventDefault();
}}
>
<Button
aria-label="request"
variant="outline"
Expand All @@ -49,7 +54,12 @@ export default function Ilpay() {
Request
</Button>
</Link>
<Link to={`/pay`}>
<Link
to={`/pay`}
onClick={(e: React.MouseEvent<HTMLElement>) => {
if (Number(amountValue) === 0) e.preventDefault();
}}
>
<Button
aria-label="pay"
size={"sm"}
Expand Down

0 comments on commit 72ca11d

Please sign in to comment.