Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Solved Issue #107 : added ':' between hour and minute in all instances of the component #185

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions InputTime/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ const InputTime = ({
},
minimal,
select24Hours,
displayTimeColon,
fontSize,
}) => {
const style = {
Expand All @@ -212,16 +211,14 @@ const InputTime = ({
size={fontSize}
/>
</SelectWrapper>
{ displayTimeColon ?
<TimeColonWrapper
minimal={minimal}
>
<Text size={'small'}>:</Text>
</TimeColonWrapper>
: null }
<SelectWrapper
minimal={minimal}
marginLeft={minimal || displayTimeColon ? 0 : '0.25rem'}
marginLeft={minimal}
marginRight={!minimal ? '0.25rem' : undefined}
>
<Select
Expand Down Expand Up @@ -263,7 +260,6 @@ InputTime.propTypes = {
}),
minimal: PropTypes.bool,
select24Hours: PropTypes.bool,
displayTimeColon: PropTypes.bool,
fontSize: PropTypes.oneOf(['small']),
};

Expand Down
19 changes: 0 additions & 19 deletions InputTime/story.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,25 +100,6 @@ storiesOf('InputTime', module)
}}
/>
))
.add('displayTimeColon', () => (
<InputTime
input={{
onChange: action('on-change'),
value: '',
}}
displayTimeColon
/>
))
.add('displayTimeColon minimal', () => (
<InputTime
input={{
onChange: action('on-change'),
value: '',
}}
displayTimeColon
minimal
/>
))
.add('small', () => (
<InputTime
input={{
Expand Down
Loading