Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ui-demo): update the links to the dashboard #1061

Merged
merged 1 commit into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion examples/ui-demo/src/components/preview/CodePreview.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Config, DEFAULT_CONFIG } from "@/app/config";
import { getSectionsForConfig } from "@/app/sections";
import { useConfigStore } from "@/state";
import { links } from "@/utils/links";
import dedent from "dedent";
import { Check, Copy } from "lucide-react";
import { useState } from "react";
Expand Down Expand Up @@ -134,7 +135,7 @@ function getConfigCode(config: Config) {

export const config = createConfig({
// if you don't want to leak api keys, you can proxy to a backend and set the rpcUrl instead here
// get this from the app config you create at https://dashboard.alchemy.com/accounts
// get this from the app config you create at ${links.dashboard}
transport: alchemy({ apiKey: "your-api-key" }),
chain: sepolia,
ssr: true, // set to false if you're not using server-side rendering
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export const MintCard = () => {
},
});
}, [client, sendUserOperation]);
const transactionUrl = `${client?.chain?.blockExplorers?.default.url}?q=${sendUserOperationResult?.hash}`;
const transactionUrl = `${client?.chain?.blockExplorers?.default.url}/tx/${sendUserOperationResult?.hash}`;

const isActionButtonsDisabled =
Object.values(status).some((x) => x === "loading") || isLoadingClient;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { cn } from "@/lib/utils";
import { links } from "@/utils/links";

type MintCardActionButtonsProps = {
nftTransfered: boolean;
Expand Down Expand Up @@ -26,7 +27,7 @@ export function MintCardActionButtons({
) : (
<div>
<a
href="https://dashboard.alchemy.com/"
href={links.dashboard}
className="btn btn-primary flex text-center mb-4 p-2 w-full m-auto"
target="_blank"
rel="noreferrer"
Expand Down
2 changes: 1 addition & 1 deletion examples/ui-demo/src/state/store.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export const createDemoStore = (initialConfig: Config = DEFAULT_CONFIG) => {
...config
}) => config,
skipHydration: true,
version: 1,
version: 2,
})
);
};
Expand Down
2 changes: 1 addition & 1 deletion examples/ui-demo/src/utils/links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ export const links = {
"https://calendly.com/d/cp7s-3yx-2yh/alchemy-account-kit-ui-alpha",
// TODO: update once we have final links
quickstartGuide: "https://accountkit.alchemy.com/react/quickstart",
dashboard: "https://dashboard.alchemy.com/",
dashboard: "https://dashboard.alchemy.com/accounts",
};
Loading