Merge pull request #5689 from strapi/fix/datepicker

Fix date filter
This commit is contained in:
cyril lopez 2020-04-03 09:58:27 +02:00 committed by GitHub
commit 1b9f4c12e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 3 deletions

View File

@ -0,0 +1,23 @@
import React from 'react';
import styled from 'styled-components';
import { Inputs } from '@buffetjs/custom';
const Wrapper = styled.div`
> div {
padding-bottom: 0;
}
label {
display: none;
}
#value {
max-width: 130px;
}
`;
const DateTime = props => (
<Wrapper>
<Inputs type="datetime" {...props} />
</Wrapper>
);
export default DateTime;

View File

@ -5,10 +5,8 @@
import React from 'react'; import React from 'react';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import { DateTime } from '@buffetjs/custom';
import { InputText, Select } from '@buffetjs/core'; import { InputText, Select } from '@buffetjs/core';
import DateTime from './DateTime';
import SizeInput from './SizeInput'; import SizeInput from './SizeInput';
const getInputType = type => { const getInputType = type => {