-
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(recurring buy): styles, polish, and functionality for success sc…
…reen
- Loading branch information
1 parent
1c57a19
commit ed9067d
Showing
6 changed files
with
256 additions
and
134 deletions.
There are no files selected for viewing
13 changes: 6 additions & 7 deletions
13
packages/blockchain-info-components/src/Flyouts/Content.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,23 +1,22 @@ | ||
import React, { memo } from 'react' | ||
import styled from 'styled-components' | ||
|
||
const Content = styled.div` | ||
const Content = styled.div<{ mode: Props['mode'] }>` | ||
display: flex; | ||
flex: 1; | ||
flex-direction: column; | ||
justify-content: flex-start; | ||
justify-content: ${(p) => | ||
p.mode === 'top' ? 'flex-start' : p.mode === 'middle' ? 'space-around' : 'space-between'}; | ||
${(p) => p.mode === 'middle' && 'align-items: center;'} | ||
` | ||
|
||
const FlyoutContent = (props: Props) => { | ||
return ( | ||
<Content> | ||
{props.children} | ||
</Content> | ||
) | ||
return <Content mode={props.mode}>{props.children}</Content> | ||
} | ||
|
||
export type Props = { | ||
children: React.ReactNode | ||
mode: 'top' | 'middle' | ||
} | ||
|
||
export default memo(FlyoutContent) |
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
35 changes: 17 additions & 18 deletions
35
packages/blockchain-wallet-v4-frontend/src/modals/RecurringBuys/Frequency/index.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
Oops, something went wrong.