ywana-core8 0.0.904 → 0.0.906
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
@@ -65,7 +65,7 @@ export const FileExplorerView = (props) => {
|
|
65
65
|
const [view, setView] = useState(selectedView)
|
66
66
|
|
67
67
|
const folder = folders.find(folder => folder.id === selectedFolder)
|
68
|
-
const folderTitle = folder ? <Text>folder.title</Text> : ''
|
68
|
+
const folderTitle = folder ? <Text>{folder.title}</Text> : ''
|
69
69
|
|
70
70
|
function switchView() {
|
71
71
|
setView(view === 'grid' ? 'list' : 'grid')
|
@@ -150,7 +150,6 @@ export const FilesGridView = (props) => {
|
|
150
150
|
const actions = []
|
151
151
|
if (onDelete) actions.push({ icon: "delete", label: "Delete", action: onDelete })
|
152
152
|
|
153
|
-
console.log(actions)
|
154
153
|
return (
|
155
154
|
<div className="files-grid">
|
156
155
|
{files.map(file => <FileGridItem key={file.id} file={file} onSelect={onSelect} selected={isSelected(file.id)} actions={actions}/>)}
|
@@ -173,11 +172,11 @@ export const FileGridItem = (props) => {
|
|
173
172
|
|
174
173
|
const style = selected ? 'file-item--selected' : ''
|
175
174
|
return (
|
176
|
-
<div className={`file-item ${style}`}
|
177
|
-
<picture>
|
175
|
+
<div className={`file-item ${style}`}>
|
176
|
+
<picture onClick={select}>
|
178
177
|
<img src={src}></img>
|
179
178
|
</picture>
|
180
|
-
<main>
|
179
|
+
<main onClick={select}>
|
181
180
|
<div className='file-item-title'>{title}</div>
|
182
181
|
<div className='file-item-subtitle'>{subtitle}</div>
|
183
182
|
</main>
|