ywana-core8 0.0.486 → 0.0.487

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ywana-core8",
3
- "version": "0.0.486",
3
+ "version": "0.0.487",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -187,7 +187,7 @@ export const DropDown = (props) => {
187
187
 
188
188
  export const DateRange = (props) => {
189
189
 
190
- const { id, label, value, onChange, readOnly } = props
190
+ const { id, label, value, onChange } = props
191
191
  const [form, setForm] = useState({})
192
192
 
193
193
  useEffect(() => {
@@ -199,10 +199,9 @@ export const DateRange = (props) => {
199
199
  setForm(next)
200
200
  }
201
201
 
202
- return readOnly ? (
203
- <TextField id={id} type="date" label={label} value={value} readOnly={true} />
204
- ) : (
202
+ return (
205
203
  <div className="date-range">
204
+ { label ? <label>{label}</label> : null }
206
205
  <TextField id="from" type="date" label="From" value={form.from} onChange={change} />
207
206
  <TextField id="to" type="date" label="To" value={form.to} onChange={change} />
208
207
  </div>