mirror of
https://github.com/strapi/strapi.git
synced 2025-10-13 17:15:33 +00:00
commit
1b9f4c12e7
@ -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;
|
@ -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 => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user