forked from LN-Zap/zap-desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ui): incorrect open btn placement in OpenDialogInput errorneus state
fix LN-Zap#2987
- Loading branch information
Showing
2 changed files
with
15 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,22 @@ | ||
import React from 'react' | ||
import { Box } from 'rebass/styled-components' | ||
import styled from 'styled-components' | ||
import Copy from 'components/Icon/FolderOpen' | ||
import { Button } from 'components/UI' | ||
|
||
const CustomButton = styled(Button)` | ||
margin-left: -46px; | ||
height: 45px; | ||
margin-top: 1px; | ||
padding: 0; | ||
border-radius: 0 5px 5px 0; | ||
overflow: hidden; | ||
z-index: 1; | ||
` | ||
|
||
const OpenDialogButton = props => ( | ||
<CustomButton type="button" variant="secondary" {...props}> | ||
<Button | ||
height={44} | ||
ml={-47} | ||
p={0} | ||
sx={{ overflow: 'hidden', zIndex: 1, borderRadius: '0 5px 5px 0' }} | ||
type="button" | ||
variant="secondary" | ||
{...props} | ||
> | ||
<Box bg="secondaryColor" p={3}> | ||
<Copy /> | ||
</Box> | ||
</CustomButton> | ||
</Button> | ||
) | ||
|
||
export default OpenDialogButton |
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