mirror of
https://github.com/Ai-hack-MAGNUM-OPUS/frontend.git
synced 2024-11-21 17:16:40 +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)=>{
|
||||
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) =>{
|
||||
|
|
|
@ -90,7 +90,7 @@ const getData = () =>{
|
|||
files.length == 0? "" : <ItemSelect
|
||||
onChange={(val)=>onFileChange(val as any)}
|
||||
items={files.map((value:any)=> ({
|
||||
name: value.file.slice(60, value.uuid.lenght),
|
||||
name: value.file,
|
||||
value: value
|
||||
} as SelectItemIE)
|
||||
)}
|
||||
|
|
Loading…
Reference in New Issue
Block a user