Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
chore(neobank): minor DX fixes (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
fuxingloh authored Jan 3, 2024
1 parent 7c59464 commit 50be1d9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default async function WalletPage(props: {
}): Promise<ReactElement> {
const graphClient = createGraphClient();

const response: any = await graphClient.request(`
const response: any = await graphClient.request(/*GraphQL*/ `
query WalletDepositAddressQuery {
wallet(walletId: "${props.params.walletId}") {
name
Expand All @@ -27,7 +27,7 @@ export default async function WalletPage(props: {
}
}
}
`);
`);

const wallet = response.wallet;

Expand Down
7 changes: 4 additions & 3 deletions examples/neobank/app/wallets/[walletId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ import { createGraphClient } from '@/components/RequestGraph';
import bignumber from 'bignumber.js';
import clsx from 'clsx';
import { StyledTable } from '@/components/StyledTable';

export default async function WalletOverviewPage(props: {
params: {
walletId: string;
};
}): Promise<ReactElement> {
const graphClient = createGraphClient();

const response: any = await graphClient.request(`
const response: any = await graphClient.request(/*GraphQL*/ `
query WalletOverviewQuery {
wallet(walletId: "${props.params.walletId}") {
name
Expand All @@ -24,7 +25,7 @@ export default async function WalletOverviewPage(props: {
identifier
}
}
balances {
balances {
items {
symbol
name
Expand All @@ -35,7 +36,7 @@ export default async function WalletOverviewPage(props: {
}
}
}
`);
`);

const wallet = response.wallet;

Expand Down
3 changes: 1 addition & 2 deletions examples/neobank/next.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/** @type {import('next').NextConfig} */

const securityHeaders = [
{
key: 'Referrer-Policy',
Expand All @@ -19,6 +17,7 @@ const securityHeaders = [
},
];

/** @type {import('next').NextConfig} */
const nextConfig = {
async headers() {
return [
Expand Down

1 comment on commit 50be1d9

@vercel
Copy link

@vercel vercel bot commented on 50be1d9 Jan 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.