Merge branch 'dev' into staging

This commit is contained in:
Maxime Lalo 2023-10-02 16:14:50 +02:00
commit e0818d3475
3 changed files with 11 additions and 3 deletions

View File

@ -7,6 +7,7 @@ export interface IGetFoldersParams {
q?: { q?: {
select?: {}; select?: {};
where?: {}; where?: {};
orderBy?: {}[];
include?: {}; include?: {};
}; };
} }

View File

@ -17,9 +17,11 @@ export default class FilePreview extends React.Component<IProps, IState> {
if (this.props.fileName) type = this.props.fileName.split(".").pop(); if (this.props.fileName) type = this.props.fileName.split(".").pop();
return ( return (
<div className={classes["root"]}> <div className={classes["root"]}>
<div className={classes["loader"]}> {!this.props.href && (
<Loader /> <div className={classes["loader"]}>
</div> <Loader />
</div>
)}
{this.props.href && ( {this.props.href && (
<> <>

View File

@ -29,6 +29,11 @@ export default function SelectFolder() {
}, },
}, },
}, },
orderBy: [
{
created_at: "desc",
},
],
}, },
}); });
setFolders(folders); setFolders(folders);