mirror of
https://github.com/Ai-hack-MAGNUM-OPUS/frontend.git
synced 2024-11-22 01:26:46 +03:00
add download files
This commit is contained in:
parent
301ca255d0
commit
1356631beb
|
@ -19,7 +19,7 @@ export const ItemSelect: React.FC<SelectIE> = (props) =>{
|
||||||
|
|
||||||
props.items.map((item:SelectItemIE)=>{
|
props.items.map((item:SelectItemIE)=>{
|
||||||
options.push(
|
options.push(
|
||||||
<div className={selected.name == item.name? styles.selected:styles.option} onClick={()=>onItemChange(item)}>{item.name}</div>
|
<div className={selected.name == item.name? styles.selected:styles.option} onClick={()=>onItemChange(item)}>{item.name.slice(60, item.name.length)}</div>
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
const onItemChange = (item:SelectItemIE) =>{
|
const onItemChange = (item:SelectItemIE) =>{
|
||||||
|
|
|
@ -90,7 +90,7 @@ const getData = () =>{
|
||||||
files.length == 0? "" : <ItemSelect
|
files.length == 0? "" : <ItemSelect
|
||||||
onChange={(val)=>onFileChange(val as any)}
|
onChange={(val)=>onFileChange(val as any)}
|
||||||
items={files.map((value:any)=> ({
|
items={files.map((value:any)=> ({
|
||||||
name: value.file.slice(60, value.uuid.lenght),
|
name: value.file,
|
||||||
value: value
|
value: value
|
||||||
} as SelectItemIE)
|
} as SelectItemIE)
|
||||||
)}
|
)}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user