Skip to content

Commit

Permalink
fix minor styles problems
Browse files Browse the repository at this point in the history
  • Loading branch information
juliancwirko committed Sep 28, 2023
1 parent 47d1499 commit 082fa0f
Show file tree
Hide file tree
Showing 6 changed files with 387 additions and 385 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
### [9.0.2](https://github.com/xdevguild/nextjs-dapp-template/releases/tag/v9.0.2) (2023-09-28)
- update useElven (native token configuration improvements)
- fix styles for xPortal deeplink on login modal + other minor style fixes
- update dependencies

### [9.0.1](https://github.com/xdevguild/nextjs-dapp-template/releases/tag/v9.0.1) (2023-09-23)
- update useElven (update with a bugfix)
- update dependencies
Expand Down
2 changes: 1 addition & 1 deletion components/elven-ui/login-modal-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const LoginModalButton: FC<LoginModalButtonProps> = ({
{isLoggingIn ? 'Connecting...' : 'Connect'}
</Button>
)}
<DialogContent className="max-w-xs sm:max-w-lg bg-zinc-200 dark:bg-zinc-950 p-0">
<DialogContent className="max-w-xs sm:max-w-lg bg-white dark:bg-zinc-950 p-0">
<DialogHeader className="px-6 pt-6">
<DialogTitle>Connect your wallet</DialogTitle>
</DialogHeader>
Expand Down
16 changes: 8 additions & 8 deletions components/elven-ui/walletconnect-qr-code.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,8 @@ export const WalletConnectQRCode: FunctionComponent<

return (
<div>
<div
className="[&>svg]:rounded-xl [&>svg]:max-w-xs [&>svg]:mx-auto"
dangerouslySetInnerHTML={{
__html: qrCodeSvg,
}}
/>
{mobile ? (
<div className="justify-center">
<div className="flex justify-center w-full mb-6">
<Button asChild>
<a
href={`${walletConnectDeepLink}?wallet-connect=${encodeURIComponent(
Expand All @@ -50,11 +44,17 @@ export const WalletConnectQRCode: FunctionComponent<
rel="noopener noreferrer nofollow"
target="_blank"
>
xPortal Login
Go to xPortal to sign in!
</a>
</Button>
</div>
) : null}
<div
className="[&>svg]:rounded-xl [&>svg]:max-w-xs [&>svg]:mx-auto [&>svg]:border [&>svg]:border-solid [&>svg]:border-zinc-300 dark:[&>svg]:border-0"
dangerouslySetInnerHTML={{
__html: qrCodeSvg,
}}
/>
</div>
);
};
9 changes: 3 additions & 6 deletions components/ui/dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,8 @@ const Dialog = DialogPrimitive.Root;

const DialogTrigger = DialogPrimitive.Trigger;

const DialogPortal = ({
className,
...props
}: DialogPrimitive.DialogPortalProps) => (
<DialogPrimitive.Portal className={cn(className)} {...props} />
const DialogPortal = ({ ...props }: DialogPrimitive.DialogPortalProps) => (
<DialogPrimitive.Portal {...props} />
);
DialogPortal.displayName = DialogPrimitive.Portal.displayName;

Expand All @@ -25,7 +22,7 @@ const DialogOverlay = React.forwardRef<
<DialogPrimitive.Overlay
ref={ref}
className={cn(
'fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',
'fixed inset-0 z-50 bg-zinc-950/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',
className
)}
{...props}
Expand Down
Loading

0 comments on commit 082fa0f

Please sign in to comment.