fix(dashboard): incomplete auto expire field (#251)

This commit is contained in:
小白-白 2025-04-24 15:05:08 +08:00 committed by GitHub
parent 8bba067340
commit 57b802ab2e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 8 deletions

View File

@ -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;

View File

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

View File

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