-
Notifications
You must be signed in to change notification settings - Fork 504
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(sell): add api call to fiat transactions with comments
- Loading branch information
Showing
7 changed files
with
62 additions
and
106 deletions.
There are no files selected for viewing
54 changes: 27 additions & 27 deletions
54
...ages/blockchain-wallet-v4-frontend/src/modals/SimpleBuy/OrderSummary/template.loading.tsx
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
import { FormattedMessage } from 'react-intl' | ||
import { SpinningLoader, Text } from 'blockchain-info-components' | ||
import React from 'react' | ||
import styled from 'styled-components' | ||
// import { FormattedMessage } from 'react-intl' | ||
// import { SpinningLoader, Text } from 'blockchain-info-components' | ||
// import React from 'react' | ||
// import styled from 'styled-components' | ||
|
||
interface Props {} | ||
// interface Props {} | ||
|
||
const Wrapper = styled.div` | ||
width: 100%; | ||
height: 100%; | ||
align-items: center; | ||
justify-content: center; | ||
display: flex; | ||
flex-direction: column; | ||
` | ||
// const Wrapper = styled.div` | ||
// width: 100%; | ||
// height: 100%; | ||
// align-items: center; | ||
// justify-content: center; | ||
// display: flex; | ||
// flex-direction: column; | ||
// ` | ||
|
||
const Loading: React.FC<Props> = () => { | ||
return ( | ||
<Wrapper> | ||
<SpinningLoader /> | ||
<Text weight={600} color='grey600' style={{ marginTop: '24px' }}> | ||
<FormattedMessage | ||
id='modals.simplebuy.gatheringinfo' | ||
defaultMessage='Gathering Some Info...' | ||
/> | ||
</Text> | ||
</Wrapper> | ||
) | ||
} | ||
// const Loading: React.FC<Props> = () => { | ||
// return ( | ||
// <Wrapper> | ||
// <SpinningLoader /> | ||
// <Text weight={600} color='grey600' style={{ marginTop: '24px' }}> | ||
// <FormattedMessage | ||
// id='modals.simplebuy.gatheringinfo' | ||
// defaultMessage='Gathering Some Info...' | ||
// /> | ||
// </Text> | ||
// </Wrapper> | ||
// ) | ||
// } | ||
|
||
export default Loading | ||
// export default Loading |
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
14 changes: 14 additions & 0 deletions
14
packages/blockchain-wallet-v4-frontend/src/modals/SimpleBuy/SellOrderSummary/selectors.ts
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { ExtractSuccess } from 'core/types' | ||
import { lift } from 'ramda' | ||
import { RootState } from 'data/rootReducer' | ||
import { selectors } from 'data' | ||
|
||
export const getData = (state: RootState) => { | ||
const sellOrder = selectors.components.simpleBuy.getSellOrder(state) | ||
const supportedCoinsR = selectors.core.walletOptions.getSupportedCoins(state) | ||
|
||
return lift((supportedCoins: ExtractSuccess<typeof supportedCoinsR>) => ({ | ||
sellOrder, | ||
supportedCoins | ||
}))(supportedCoinsR) | ||
} |
31 changes: 0 additions & 31 deletions
31
.../blockchain-wallet-v4-frontend/src/modals/SimpleBuy/SellOrderSummary/template.loading.tsx
This file was deleted.
Oops, something went wrong.
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
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
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