-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into rob/redirect-params-post
- Loading branch information
Showing
25 changed files
with
193 additions
and
216 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
examples/ui-demo/src/components/configuration/ConfigurationSidebarWrapper.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React from "react"; | ||
import { Authentication } from "./Authentication"; | ||
import { Styling } from "./Styling"; | ||
|
||
export function ConfigurationSidebarWrapper() { | ||
return ( | ||
<div className="hidden lg:block w-[272px] lg:w-[392px] bg-white border border-border rounded-lg p-6 overflow-y-auto scrollbar-none"> | ||
<Authentication /> | ||
<Styling /> | ||
</div> | ||
); | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
...d/eoa-post-login/EOAPostLoginContents.tsx → ...s/eoa-post-login/EOAPostLoginContents.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions
10
...omponents/shared/mint-card/ValueProps.tsx → ...o/src/components/mint-card/ValueProps.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 0 additions & 71 deletions
71
examples/ui-demo/src/components/preview/AuthCardWrapper.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
import { cn } from "@/lib/utils"; | ||
import { RenderUserConnectionAvatar } from "../user-connection-avatar/RenderUserConnectionAvatar"; | ||
import { useUser } from "@account-kit/react"; | ||
import ExternalLink from "@/components/shared/ExternalLink"; | ||
import { Metrics } from "@/metrics"; | ||
import { CodePreviewSwitch } from "@/components/shared/CodePreviewSwitch"; | ||
|
||
export function PreviewNav({ | ||
showCode, | ||
setShowCode, | ||
}: { | ||
showCode: boolean; | ||
setShowCode: (showCode: boolean) => void; | ||
}) { | ||
const user = useUser(); | ||
return ( | ||
<div | ||
className={cn( | ||
`w-full p-6 top-0 left-0 border-border z-10 relative lg:sticky lg:after:hidden after:content-[''] after:absolute after:bottom-0 after:left-6 after:right-6 after:h-[1px] after:bg-border`, | ||
!user && !showCode && "hidden lg:block lg:absolute", | ||
(user || showCode) && "lg:border-b" | ||
)} | ||
> | ||
<div | ||
className={cn( | ||
"flex justify-between items-start", | ||
!showCode && !user && "justify-end" | ||
)} | ||
> | ||
{!showCode && user && <RenderUserConnectionAvatar />} | ||
{showCode && ( | ||
<div className="font-semibold text-foreground text-xl"> | ||
Export configuration | ||
</div> | ||
)} | ||
|
||
<CodePreviewSwitch checked={showCode} onCheckedChange={setShowCode} /> | ||
</div> | ||
{showCode && ( | ||
<p className="text-sm text-demo-fg-secondary max-w-[85%]"> | ||
To get started, simply paste the below code into your environment. | ||
You'll need to add your Alchemy API key and Gas Policy ID.{" "} | ||
<ExternalLink | ||
onClick={() => | ||
Metrics.trackEvent({ | ||
name: "codepreview_theme_customization_clicked", | ||
}) | ||
} | ||
href="https://accountkit.alchemy.com/react/customization/theme" | ||
className="font-semibold text-blue-600" | ||
> | ||
Fully customize styling here. | ||
</ExternalLink> | ||
</p> | ||
)} | ||
</div> | ||
); | ||
} |
Oops, something went wrong.