mirror of
https://github.com/cloudreve/frontend.git
synced 2025-12-25 19:52:48 +00:00
fix(dashboard): incomplete auto expire field (#251)
This commit is contained in:
parent
8bba067340
commit
57b802ab2e
|
|
@ -523,7 +523,7 @@ export interface Share extends CommonMixin {
|
|||
password?: string;
|
||||
views?: number;
|
||||
downloads?: number;
|
||||
expire?: string;
|
||||
expires?: string;
|
||||
remain_downloads?: number;
|
||||
edges: {
|
||||
user?: User;
|
||||
|
|
|
|||
|
|
@ -278,7 +278,7 @@ const ShareList = () => {
|
|||
{t("share.price")}
|
||||
</TableSortLabel>
|
||||
</NoWrapTableCell>
|
||||
<NoWrapTableCell width={100}>{t("share.autoExpire")}</NoWrapTableCell>
|
||||
<NoWrapTableCell width={150}>{t("share.autoExpire")}</NoWrapTableCell>
|
||||
<NoWrapTableCell width={150}>{t("share.owner")}</NoWrapTableCell>
|
||||
<NoWrapTableCell width={180}>
|
||||
<TableSortLabel
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ const ShareRow = ({
|
|||
<Skeleton variant="text" width={50} />
|
||||
</NoWrapTableCell>
|
||||
<NoWrapTableCell>
|
||||
<Skeleton variant="text" width={50} />
|
||||
<Skeleton variant="text" width={130} />
|
||||
</NoWrapTableCell>
|
||||
<NoWrapTableCell>
|
||||
<Box sx={{ display: "flex", alignItems: "center", gap: 1 }}>
|
||||
|
|
@ -172,11 +172,9 @@ const ShareRow = ({
|
|||
<NoWrapTableCell>
|
||||
<NoWrapTypography variant="inherit">{share?.price}</NoWrapTypography>
|
||||
</NoWrapTableCell>
|
||||
<NoWrapTableCell>
|
||||
<NoWrapTypography variant="inherit">
|
||||
<ShareExpires expires={share?.expire} remain_downloads={share?.remain_downloads} />
|
||||
</NoWrapTypography>
|
||||
</NoWrapTableCell>
|
||||
<TableCell>
|
||||
<ShareExpires expires={share?.expires} remain_downloads={share?.remain_downloads} />
|
||||
</TableCell>
|
||||
<NoWrapTableCell>
|
||||
{share?.edges?.user && (
|
||||
<Box sx={{ display: "flex", alignItems: "center", gap: 1 }}>
|
||||
|
|
|
|||
Loading…
Reference in New Issue