fix(governance): markdown link styling, referral details type error, contracts provider error (#5460)

This commit is contained in:
Art 2023-12-06 14:18:44 +01:00 committed by GitHub
parent fef13874db
commit 8958c12fe3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 8 deletions

View File

@ -49,12 +49,8 @@ export const ContractsProvider = ({ children }: { children: JSX.Element }) => {
? activeProvider ? activeProvider
: defaultProvider; : defaultProvider;
if ( if (account && provider && typeof provider.getSigner === 'function') {
account && signer = provider.getSigner(account);
activeProvider &&
typeof activeProvider.getSigner === 'function'
) {
signer = provider.getSigner();
} }
const tokenVestingAddress = const tokenVestingAddress =

View File

@ -54,8 +54,8 @@ export const ProposalReferralProgramDetails = ({
return null; return null;
} }
const benefitTiers = proposal?.terms?.change?.benefitTiers; const benefitTiers = proposal?.terms?.change?.benefitTiers.slice();
const stakingTiers = proposal?.terms?.change?.stakingTiers; const stakingTiers = proposal?.terms?.change?.stakingTiers.slice();
const windowLength = proposal?.terms?.change?.windowLength; const windowLength = proposal?.terms?.change?.windowLength;
const endOfProgramTimestamp = proposal?.terms?.change?.endOfProgram; const endOfProgramTimestamp = proposal?.terms?.change?.endOfProgram;

View File

@ -104,6 +104,10 @@
list-style: circle; list-style: circle;
} }
.react-markdown-container a {
text-decoration: underline;
}
.jsondiffpatch-delta, .jsondiffpatch-delta,
.jsondiffpatch-delta pre { .jsondiffpatch-delta pre {
font-family: 'Roboto Mono', monospace !important; font-family: 'Roboto Mono', monospace !important;