add download files

This commit is contained in:
Firesieht 2022-08-28 12:53:03 +03:00
parent 301ca255d0
commit 1356631beb
2 changed files with 2 additions and 2 deletions

View File

@ -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) =>{

View File

@ -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)
)} )}