safe-react/src/index.tsx

24 lines
833 B
TypeScript
Raw Normal View History

import { BigNumber } from 'bignumber.js'
import React from 'react'
2018-03-01 09:05:56 +01:00
import ReactDOM from 'react-dom'
import Root from 'src/components/Root'
import loadCurrentSessionFromStorage from 'src/logic/currentSession/store/actions/loadCurrentSessionFromStorage'
import loadActiveTokens from 'src/logic/tokens/store/actions/loadActiveTokens'
new TXs tab (#1089) * new TXs tab * Removes coverage folder from git * Adds getAllTxServiceUriTo Adds types on fetchTransactions * Adds loadAllTransactions method * Adds types for allTransactions * Adds types to loadAllTransactions Adds urlParams to fetchAllTransactions * Adds transactionsNew store * Fetch all transactions endpoint and updates newTransactions store * Updates transactions types * Adds newTransactionsHelpers.ts * Remove white spaces * Removes immutableJS usage in NewTransactionsState * Renames getAllTxServiceUriTo to getNewTransactionsServiceUriFrom * Renames reducer TRANSACTIONS_NEW to TRANSACTIONS * Removes newTransactions from fetchTransactions.ts * Adds useFetchNewTransactions hook Adds uriParams as parameter for loadAllTransactions * Updates default state * Adds newTransactionsSelector Updates newTxsTab behaviour * Renames eTag to responseEtag * Fix missing Map type Import in AppReduxState * Remove generic types * Adds offset and limit to the NewTransactionsState Adds currentPageSelector Adds getNewTransactionsState * Moves addNewTransactions action to actions/TransactionsNew * Implements setPreviousPage, setNextPage * Adds safeNewTransactionsSelector Adds newTransactionsCurrentPageSelector * Implements basic pagination on tabs layout * Remove offset and limit from ADD_NEW_TRANSACTIONS action Fixs ADD_NEW_TRANSACTIONS reducer implementation * Improves useFetchNewTransactions usage to avoid re renders * Fix newTransactionsCurrentPageSelector page calculation * Fixs newTransactionsCurrentPageSelector Adds loader state on newTxsTab * Implements etags by page * Implements pagination restrictions * Fix import * Reduce any's usage * Replaces JSX.Element with ReactElement * Fixs types * Moves all the pagination actions to pagination.ts * Simplify loadAllTransactions return values * Replaces limit 100 to 50 * Rename actions * Fix types * Add TODO * Replaces count/transactionsCount to totalTransactionsAmount * Renames getNewTransactionsServiceUriFrom to getAllTransactionsUriFrom Add types * Rename newTxs to Transactions * Add types to CopyBtn * Replaces /transactionsNew with /all-transactions * Replace btn handlers usage * Uses hash as key * Replaces redux with params * Types * Improves enum types * Replaces is with boolean * Merge branch 'development' of https://github.com/gnosis/safe-react into transactions_new # Conflicts: # src/store/index.ts * Types * Enums * Remove tabsValue() * Moves store from ui to logic folder * Fix imports * Add type for new transactions * Add Gnosis CLA (#1188) * replace newTransactions with allTransactions * bring back src/store * bring back src/store 2 * Fix match type usage * Merge branch 'development' of https://github.com/gnosis/safe-react into transactions_new # Conflicts: # src/logic/addressBook/store/selectors/index.ts # src/logic/safe/transactions/send.ts * Fix key null warning * Removes limit and offset from allTransactions State * Simplify allTransactions state * Renames transactionsNew folder to allTransactions * v2.9.0 * bump node in travis to 12 * add overflow hidden to iframe container in safe apps * Merge branch 'development' of https://github.com/gnosis/safe-react into transactions_new # Conflicts: # src/logic/safe/store/actions/__tests__/utils.test.ts # src/logic/safe/store/actions/addSafeModules.ts # src/logic/safe/store/reducer/safe.ts # src/logic/safe/store/reducer/types/safe.d.ts # src/routes/safe/components/Apps/index.tsx # src/routes/safe/components/Layout/Tabs/index.tsx # src/routes/safe/components/Settings/Advanced/dataFetcher.ts # src/routes/safe/components/Transactions/TxsTable/ExpandedTx/OwnersColumn/index.tsx # src/routes/safe/components/Transactions/TxsTable/ExpandedTx/TxDescription/CustomDescription.tsx # src/routes/safe/container/hooks/useFetchTokens.tsx # src/routes/safe/container/hooks/useLoadSafe.tsx # src/routes/safe/store/reducer/types/safe.d.ts # src/routes/safe/store/reducer/types/safe.ts * Fix offchain signing * fix crash when opening a mocked transaction * Add Balancer Pool and Exchange Apps. * Feedback, absolute imports * Types * Refactor all transactions, adds totalTransactionsAmount on redux * Absolute path Co-authored-by: Agustin Pane <agustin.pane@gmail.com> Co-authored-by: Mikhail Mikheev <mmvsha73@gmail.com> Co-authored-by: Mati Dastugue <matias.dastugue@altoros.com>
2020-08-14 12:15:09 -03:00
import loadDefaultSafe from 'src/logic/safe/store/actions/loadDefaultSafe'
import loadSafesFromStorage from 'src/logic/safe/store/actions/loadSafesFromStorage'
import { store } from 'src/store'
2019-11-27 10:43:44 +01:00
BigNumber.set({ EXPONENTIAL_AT: [-7, 255] })
2019-04-17 16:47:21 +04:00
store.dispatch(loadActiveTokens())
store.dispatch(loadSafesFromStorage())
2019-09-19 13:30:13 +04:00
store.dispatch(loadDefaultSafe())
store.dispatch(loadCurrentSessionFromStorage())
2018-03-01 09:05:56 +01:00
2019-11-22 20:23:57 -03:00
const root = document.getElementById('root')
if (root !== null) {
ReactDOM.render(<Root />, root)
}