Skip to content

Commit

Permalink
Bump GlobalStyle
Browse files Browse the repository at this point in the history
  • Loading branch information
lucemans committed Nov 22, 2023
1 parent 576ab15 commit fa97c33
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion web/src/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const Home = () => {
<a
href={'/' + name}
className={clsx(
'block text-center btn btn-full',
'block text-center btn btn-pad btn-full',
name.length > 0 ? 'btn-primary' : 'btn-disabled'
)}
aria-disabled={name.length === 0}
Expand Down
1 change: 0 additions & 1 deletion web/src/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export const Layout: FC<PropsWithChildren<{}>> = ({ children }) => {
onClose={() => {
setHeaderExpanded(false);
}}
name={location?.href?.replace('/', '')}
/>
)}
<div className="w-full mx-auto max-w-xl px-4 pt-8 pb-16 flex flex-col gap-4">
Expand Down
2 changes: 1 addition & 1 deletion web/src/Profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ export const Profile: FC<{ name: string }> = ({ name }) => {
{editable && (
<FloatingButton>
<button
className="btn btn-primary btn-full"
className="btn btn-primary btn-pad btn-full"
onClick={() => mutateProfile()}
>
Update profile
Expand Down
6 changes: 5 additions & 1 deletion web/src/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
@tailwind variants;

.btn {
@apply rounded-xl p-2;
@apply rounded-xl;
}

.btn-pad {
@apply py-3 px-4;
}

.btn.btn-primary {
Expand Down
2 changes: 1 addition & 1 deletion web/src/migration/GoGassless.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const GoGassless: FC<{ name: string }> = ({ name }) => {
return (
<>
<button
className="z-10 w-full max-w-2xs md:max-w-full mx-auto btn btn-primary"
className="z-10 max-w-2xs md:max-w-full mx-auto btn btn-pad btn-primary btn-full"
onClick={() => {
console.log('Go Gassless');
setIsOpen(true);
Expand Down
6 changes: 3 additions & 3 deletions web/src/migration/SetResolverModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@ export const SetResolverModal: FC<{
<div className="gap-2 flex flex-col">
<button
onClick={onClosez}
className="w-full p-4 rounded-xl bg-ens-light-blue-surface text-ens-light-blue-dim dark:bg-ens-dark-blue-surface dark:text-ens-dark-blue-dim"
className="btn btn-secondary btn-pad btn-full"
>
Back
</button>
<button
onClick={() => {
write();
}}
className="relative flex items-center justify-center w-full p-4 rounded-xl bg-ens-light-blue-primary dark:bg-ens-dark-blue-primary text-ens-light-text-accent dark:text-ens-dark-text-accent"
className="relative flex items-center justify-center btn btn-primary btn-pad btn-full"
>
Update Resolver
{isLoading && (
Expand All @@ -90,7 +90,7 @@ export const SetResolverModal: FC<{
onClick={() => {
setTestReceiptOpen(true);
}}
className="relative flex items-center justify-center w-full p-4 rounded-xl bg-ens-light-blue-primary dark:bg-ens-dark-blue-primary text-ens-light-text-accent dark:text-ens-dark-text-accent"
className="relative flex items-center justify-center btn btn-primary btn-pad btn-full"
>
Test Transaction Receipt
</button>
Expand Down

0 comments on commit fa97c33

Please sign in to comment.