ywana-core8 0.0.379 → 0.0.380

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.379",
3
+ "version": "0.0.380",
4
4
  "description": "ywana-core8",
5
5
  "author": "Ernesto Roldan Garcia",
6
6
  "license": "MIT",
@@ -1,4 +1,4 @@
1
- import React, { Fragment, useContext } from 'react';
1
+ import React, { Fragment, useContext, useState } from 'react';
2
2
  import { Uploader } from './Uploader'
3
3
  import { Button, Text } from '../../html';
4
4
  import { SiteContext, Dialog } from '../../site';
@@ -6,7 +6,7 @@ import { SiteContext, Dialog } from '../../site';
6
6
  /**
7
7
  * Upload Dialog
8
8
  */
9
- export const UploadDialog = ({ className, label, target, accept, onSuccess, onComplete, onClose, children }) => {
9
+ export const UploadDialog = ({ label, target, accept, onSuccess, onComplete, onClose }) => {
10
10
 
11
11
  const site = useContext(SiteContext);
12
12
 
@@ -33,9 +33,8 @@ export const UploadDialog = ({ className, label, target, accept, onSuccess, onCo
33
33
 
34
34
  const title = <Text use="headline6">{label}</Text>
35
35
  return (
36
- <Dialog className={className} title={title} open={true} onAction={onAction} actions={actions} eventPropagation={true}>
36
+ <Dialog title={title} open={true} onAction={onAction} actions={actions} eventPropagation={true}>
37
37
  <Uploader label={label} accept={accept} target={target} onSuccess={success} onComplete={complete} />
38
- {children}
39
38
  </Dialog>
40
39
  )
41
40
  }