Skip to content
Permalink
Browse files

fix(ui): incorrect open dialog button placement

  • Loading branch information...
korhaliv committed Apr 9, 2019
1 parent a182d94 commit c35eecab69da4ad83367da627221ec77e589cd99
Showing with 2 additions and 4 deletions.
  1. +2 −4 renderer/components/UI/OpenDialogInput.js
@@ -3,7 +3,6 @@ import styled from 'styled-components'
import { compose } from 'redux'
import { asField } from 'informed'
import { withRequiredValidation } from 'hocs'
import { Flex } from 'rebass'
import PropTypes from 'prop-types'
import { WithOpenDialog } from 'hocs'
import { BasicInput } from './Input'
@@ -22,8 +21,7 @@ const OpenDialogInput = props => {
return (
<WithOpenDialog
render={({ openDialog }) => (
<Flex alignItems="center" flexDirection="row" mb={3}>
<InnerInput width={1} {...props} />
<InnerInput width={1} {...props}>
<OpenDialogButton
onClick={() => {
const result = openDialog()
@@ -34,7 +32,7 @@ const OpenDialogInput = props => {
}
}}
/>
</Flex>
</InnerInput>
)}
/>
)

0 comments on commit c35eeca

Please sign in to comment.
You can’t perform that action at this time.