Skip to content

Commit dd21ef5

Browse files
authored
Minor DX improvements (#138)
* Using semicolon consistently in TS interfaces * Adding index.html to Tailwind's "content" option * Supporting default Tailwind colors as well as custom ones
1 parent 3369445 commit dd21ef5

File tree

3 files changed

+25
-23
lines changed

3 files changed

+25
-23
lines changed

minting-dapp/src/scripts/react/Dapp.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ interface Props {
1616

1717
interface State {
1818
userAddress: string|null;
19-
network: ethers.providers.Network|null,
20-
networkConfig: NetworkConfigInterface,
19+
network: ethers.providers.Network|null;
20+
networkConfig: NetworkConfigInterface;
2121
totalSupply: number;
2222
maxSupply: number;
2323
maxMintAmountPerTx: number;
@@ -27,7 +27,7 @@ interface State {
2727
isUserInWhitelist: boolean;
2828
merkleProofManualAddress: string;
2929
merkleProofManualAddressFeedbackMessage: string|JSX.Element|null;
30-
errorMessage: string|JSX.Element|null,
30+
errorMessage: string|JSX.Element|null;
3131
}
3232

3333
const defaultState: State = {

minting-dapp/src/scripts/react/MintWidget.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ import { utils, BigNumber } from 'ethers';
22
import React from 'react';
33

44
interface Props {
5-
maxSupply: number,
6-
totalSupply: number,
7-
tokenPrice: BigNumber,
8-
maxMintAmountPerTx: number,
9-
isPaused: boolean,
10-
isWhitelistMintEnabled: boolean,
11-
isUserInWhitelist: boolean,
12-
mintTokens(mintAmount: number): Promise<void>,
13-
whitelistMintTokens(mintAmount: number): Promise<void>,
5+
maxSupply: number;
6+
totalSupply: number;
7+
tokenPrice: BigNumber;
8+
maxMintAmountPerTx: number;
9+
isPaused: boolean;
10+
isWhitelistMintEnabled: boolean;
11+
isUserInWhitelist: boolean;
12+
mintTokens(mintAmount: number): Promise<void>;
13+
whitelistMintTokens(mintAmount: number): Promise<void>;
1414
}
1515

1616
interface State {

minting-dapp/tailwind.config.js

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,25 @@
11
const colors = require('tailwindcss/colors');
22

3+
// Setting some custom names
4+
colors.popupsbg = colors.white;
5+
colors.neutral = colors.slate;
6+
colors.primary = colors.indigo;
7+
colors.primarytxt = colors.white;
8+
colors.warning = colors.yellow;
9+
colors.warningtxt = colors.black;
10+
colors.error = colors.red;
11+
colors.errortxt = colors.white;
12+
313
module.exports = {
414
mode: 'jit',
515
content: [
616
'./src/**/*.tsx',
17+
'./public/index.html',
718
],
819
theme: {
920
extend: {},
10-
colors: {
11-
popupsbg: colors.white,
12-
neutral: colors.slate,
13-
primary: colors.indigo,
14-
primarytxt: colors.white,
15-
warning: colors.yellow,
16-
warningtxt: colors.black,
17-
error: colors.red,
18-
errortxt: colors.white,
19-
}
21+
colors,
2022
},
2123
variants: {},
2224
plugins: [],
23-
}
25+
};

0 commit comments

Comments
 (0)