|
|
há 3 anos atrás | |
|---|---|---|
| .. | ||
| src | 91fc692963 add .js file extensions | há 3 anos atrás |
| LICENSE | 10655364d6 move packages | há 4 anos atrás |
| README.md | fda91e9c60 update readme / faq | há 3 anos atrás |
| package.json | 4a7609af25 checkout select changes from mwa branch | há 3 anos atrás |
| styles.css | f556c2e485 don't import styles into JS by default | há 4 anos atrás |
| tsconfig.all.json | b020b317b5 update tsconfig paths | há 3 anos atrás |
| tsconfig.cjs.json | 33af6643ac update tsconfig | há 3 anos atrás |
| tsconfig.esm.json | 33af6643ac update tsconfig | há 3 anos atrás |
@solana/wallet-adapter-ant-designSee the example package for more usage.
craco-less into the project npm install --save craco-less.
Add it to the craco.config.js file
const CracoLessPlugin = require('craco-less');
module.exports = {
plugins: [
{
plugin: CracoLessPlugin,
options: {
lessLoaderOptions: {
lessOptions: {
modifyVars: { '@primary-color': '#512da8' },
javascriptEnabled: true,
},
},
},
},
],
};
Install these peer dependencies (or skip this if you have them already):
npm install --save \
antd \
@ant-design/icons \
@solana/web3.js \
react
Install these dependencies:
npm install --save \
@solana/wallet-adapter-wallets \
@solana/wallet-adapter-react \
@solana/wallet-adapter-ant-design \
@solana/wallet-adapter-base
Check out usage in the example package.
You can override the following elements from the stylesheet:
.wallet-adapter-icon
.wallet-adapter-modal-menu
.wallet-adapter-modal-menu-item
.wallet-adapter-modal-menu-button
.wallet-adapter-modal-menu-button-icon
.wallet-adapter-multi-button-menu
.wallet-adapter-multi-button-menu-item
.wallet-adapter-multi-button-menu-button
.wallet-adapter-multi-button-icon
.wallet-adapter-multi-button-item