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
import type { ChangeEvent, ReactNode } from "react"; | |
import { Button, Typography } from "@mui/material"; | |
import type { EnhancedStore } from "@reduxjs/toolkit"; | |
import notices from "@contracts/trumatic/notices.json"; | |
import type { TokenSymbol } from "@interfaces/shared-types"; | |
import formSlice from "@store/form/form.reducer"; | |
import { selectUserStakingTokenBalance, selectUserStakerSummary } from "@store/staker/staker.selectors"; | |
import { trimInputValue } from "@utils/helpers/forms/trim-input-values"; | |
import { validateAllocationAmount } from "./form-validation/trustake-common.validation"; | |
import { formSubmitActions, formValidationActions } from "./submit-actions/trustake-form-submit-actions"; |
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
import { WalletCore } from "@aptos-labs/wallet-adapter-core"; | |
import { MartianWallet } from "@martianwallet/aptos-wallet-adapter"; | |
import { PetraWallet } from "petra-plugin-wallet-adapter"; | |
import { connectWalletAction, disconnectWalletAction } from "@store/wallet/wallet.reducer"; | |
import { getAptosWalletState } from "@store/wallet/wallet.utils"; | |
import { aptosWalletCore, connectAptosWallet, injectStoreToAptosWalletConfig } from './wallet.config.aptos'; | |
jest.mock("@aptos-labs/wallet-adapter-core"); | |
jest.mock("@martianwallet/aptos-wallet-adapter"); | |
jest.mock("petra-plugin-wallet-adapter"); |
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
localforage.keys().then((keys) => console.log(keys)) |
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
localforage.iterate(function(value, key, iterationNumber) { | |
// Resulting key/value pair -- this callback | |
// will be executed for every item in the | |
// database. | |
console.log([key, value]); | |
}, function(err) { | |
if (!err) { | |
console.log('Iteration has completed'); | |
} | |
}); |
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
%text-shadow { text-shadow: 2px 2px 1px black; } | |
%clearfix { | |
&:after { | |
content: "."; | |
display: block; | |
clear: both; | |
visibility: hidden; | |
line-height: 0; | |
height: 0; |
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
// ================================================================== | |
// Flexbox | |
// | |
// Implementation based on Chris Coyier's article: | |
// Using Flexbox: Mixing Old and New for the Best Browser Support || http://css-tricks.com/using-flexbox/ | |
// ================================================================== | |
// Flexbox Context (applied to container element of flex items) | |
@mixin flex-display { | |
@include experimental-value(display, box, -moz, -webkit, -ms, not -khtml, official); |
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
// animation.css | |
@include keyframes(reduce) { | |
0% { | |
width: 100%; | |
background-color: #828282; | |
} | |
80% { | |
background-color: #828282; | |
} | |
100% { |