Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
fix(ui): incorrect open dialog button placement
Browse files Browse the repository at this point in the history
  • Loading branch information
korhaliv committed Apr 9, 2019
1 parent a182d94 commit c35eeca
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions renderer/components/UI/OpenDialogInput.js
Expand Up @@ -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'
Expand All @@ -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()
Expand All @@ -34,7 +32,7 @@ const OpenDialogInput = props => {
}
}}
/>
</Flex>
</InnerInput>
)}
/>
)
Expand Down

0 comments on commit c35eeca

Please sign in to comment.