Skip to content

Commit 24c1584

Browse files
committed
update ui and dependencies
1 parent 1c2ad99 commit 24c1584

File tree

7 files changed

+198
-197
lines changed

7 files changed

+198
-197
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### [9.8.1](https://github.com/xdevguild/nextjs-dapp-template/releases/tag/v9.8.1) (2024-07-06)
2+
- update dependencies
3+
- adjust UI
4+
15
### [9.8.0](https://github.com/xdevguild/nextjs-dapp-template/releases/tag/v9.8.0) (2024-06-20)
26
- update useElven - added MultiversX 'apps hub' support (experimental, report problems)
37

app/layout.tsx

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import { ThemeProvider } from '@/components/theme-provider';
22
import './globals.css';
33
import packageJson from '@/package.json';
4-
import { Github } from 'lucide-react';
54
import type { Metadata } from 'next';
65
import { Inter } from 'next/font/google';
76
import { ModeToggle } from '@/components/mode-toggle';
87
import { ElvenInit } from '@/components/elven-ui/elven-init';
98
import { LoginModalButton } from '@/components/elven-ui/login-modal-button';
109
import Link from 'next/link';
10+
import GitHubIcon from '/public/github.svg';
11+
import Image from 'next/image';
1112

1213
const inter = Inter({ subsets: ['latin'] });
1314

@@ -62,7 +63,12 @@ export default function RootLayout({
6263
href="https://github.com/xdevguild/nextjs-dapp-template"
6364
target="_blank"
6465
>
65-
<Github size={30} />
66+
<Image
67+
src={GitHubIcon}
68+
width={20}
69+
height={20}
70+
alt="xDevGuild GitHub"
71+
/>
6672
</a>
6773
</div>
6874
{/* TODO: implement docs page */}

components/elven-ui/ledger-accounts-list.tsx

+1-9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { FC, useCallback, useState, useEffect, useRef } from 'react';
22
import { useRouter } from 'next/navigation';
3-
import { LoginMethodsEnum, useLoginInfo } from '@useelven/core';
3+
import { LoginMethodsEnum } from '@useelven/core';
44
import { Button } from '@/components/ui/button';
55
import { shortenHash } from '@/lib/shorten-hash';
66
import { errorParse } from '@/lib/error-parse';
@@ -29,8 +29,6 @@ export const LedgerAccountsList: FC<LedgerAccountsListProps> = ({
2929
const [error, setError] = useState<string>();
3030
const [chosenAddress, setAddress] = useState<string>();
3131

32-
const { loginToken } = useLoginInfo();
33-
3432
const router = useRouter();
3533

3634
const getAccounts = async (page: number) =>
@@ -151,12 +149,6 @@ export const LedgerAccountsList: FC<LedgerAccountsListProps> = ({
151149
<div className="mt-3 break-words text-center">
152150
<div className="font-bold">Address:</div> {chosenAddress}
153151
</div>
154-
{loginToken && (
155-
<div className="mt-3">
156-
<div className="font-bold text-center">Login token:</div>
157-
<div className="break-words text-center">{loginToken}</div>
158-
</div>
159-
)}
160152
</div>
161153
);
162154
}

next.config.js

-5
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@ const nextConfig = {
1010
eslint: {
1111
dirs: ['components', 'hooks', 'lib', 'app'],
1212
},
13-
experimental: {
14-
turbo: {
15-
externals: externals,
16-
},
17-
},
1813
};
1914

2015
module.exports = nextConfig;

0 commit comments

Comments
 (0)