-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: html semantics + disable rehydration (#53)
* fix: html semantics * feat: update pkgs * feat: add custom wallet * feat: Clean up * small improvement --------- Co-authored-by: marc2332 <[email protected]>
- Loading branch information
Showing
11 changed files
with
418 additions
and
405 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.d.ts |
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 |
---|---|---|
@@ -1,16 +1,25 @@ | ||
import type { FC } from 'react'; | ||
|
||
import { useWallet } from '@solana/wallet-adapter-react'; | ||
import { WalletMultiButton } from '@solana/wallet-adapter-react-ui'; | ||
|
||
const Wallet: FC = () => ( | ||
<div | ||
className="d-flex " | ||
style={{ | ||
transform: 'scale(0.7)', | ||
}} | ||
> | ||
<WalletMultiButton /> | ||
</div> | ||
); | ||
const Wallet: FC = () => { | ||
const { publicKey } = useWallet(); | ||
return ( | ||
<div | ||
className="d-flex " | ||
style={{ | ||
transform: 'scale(0.7)', | ||
}} | ||
> | ||
<WalletMultiButton className="solana-wallet-adapter-button"> | ||
{!publicKey | ||
? 'Connect Wallet' | ||
: publicKey?.toBase58().slice(0, 4) + | ||
'..' + | ||
publicKey?.toBase58().slice(-4)}{' '} | ||
</WalletMultiButton> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Wallet; |
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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// / <reference types="next" /> | ||
// / <reference types="next/image-types/global" /> | ||
/// <reference types="next" /> | ||
/// <reference types="next/image-types/global" /> | ||
|
||
// NOTE: This file should not be edited | ||
// see https://nextjs.org/docs/basic-features/typescript for more information. |
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
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
Oops, something went wrong.