This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ui): mark items with autopay enabled
- Loading branch information
Showing
3 changed files
with
45 additions
and
5 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import React from 'react' | ||
import { Card, Flex, Box } from 'rebass' | ||
import { themeGet } from 'styled-system' | ||
import styled, { withTheme } from 'styled-components' | ||
import { tint } from 'polished' | ||
import Check from 'components/Icon/Check' | ||
|
||
const Gradient = styled(Card)` | ||
background: linear-gradient( | ||
to bottom, | ||
${props => tint(0.2, props.theme.colors[props.bg])}, | ||
${props => props.theme.colors[props.bg]} | ||
); | ||
` | ||
|
||
const AutopayLimitBadge = props => { | ||
return ( | ||
<Gradient | ||
bg="lightningOrange" | ||
borderRadius="50%" | ||
boxShadow={`0 0 24px 0 ${themeGet('colors.lightningOrange')(props)}`} | ||
css={{ height: '35px' }} | ||
width={35} | ||
{...props} | ||
> | ||
<Flex alignItems="center" css={{ height: '100%' }} justifyContent="center"> | ||
<Box color="white"> | ||
<Check height={20} width={20} /> | ||
</Box> | ||
</Flex> | ||
</Gradient> | ||
) | ||
} | ||
|
||
export default withTheme(AutopayLimitBadge) |
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