Skip to content

Commit

Permalink
docs: using import instead require (#919)
Browse files Browse the repository at this point in the history
* using `import` instead `require` 

in modern React tooling import statement is more preferable

* Update APP.md

Co-authored-by: Glitch <[email protected]>

---------

Co-authored-by: Glitch <[email protected]>
  • Loading branch information
melonges and glitch-txs authored Jun 26, 2024
1 parent 8748ff5 commit 689a3d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion APP.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import {
import { clusterApiUrl } from '@solana/web3.js';

// Default styles that can be overridden by your app
require('@solana/wallet-adapter-react-ui/styles.css');
import '@solana/wallet-adapter-react-ui/styles.css';

export const Wallet: FC = () => {
// The network can be set to 'devnet', 'testnet', or 'mainnet-beta'.
Expand Down

0 comments on commit 689a3d1

Please sign in to comment.