feat : remove latest lunaris version showing in admin dashboard
This commit is contained in:
@@ -70,12 +70,10 @@ export function StructuredDashboard({
|
||||
guides,
|
||||
trash,
|
||||
catalogVersion,
|
||||
latestCatalogVersion,
|
||||
}: {
|
||||
guides: GuideCard[];
|
||||
trash: GuideCard[];
|
||||
catalogVersion: string | null;
|
||||
latestCatalogVersion: string | null;
|
||||
}) {
|
||||
const router = useRouter();
|
||||
const [pending, startTransition] = useTransition();
|
||||
@@ -83,11 +81,6 @@ export function StructuredDashboard({
|
||||
const [syncJob, setSyncJob] = useState<CatalogSyncJob | null>(null);
|
||||
const presence = useAdminPresence(null);
|
||||
const catalogReady = Boolean(catalogVersion);
|
||||
const updateAvailable = Boolean(
|
||||
catalogVersion &&
|
||||
latestCatalogVersion &&
|
||||
catalogVersion !== latestCatalogVersion,
|
||||
);
|
||||
const syncJobId = syncJob?.id;
|
||||
const syncJobStatus = syncJob?.status;
|
||||
const search = searchItems(guides, query,
|
||||
@@ -148,13 +141,6 @@ export function StructuredDashboard({
|
||||
Lunaris ที่ Sync:{" "}
|
||||
{catalogVersion ? `v${catalogVersion}` : "ยังไม่ Sync"}
|
||||
</Badge>
|
||||
<Badge variant={updateAvailable ? "default" : "secondary"}>
|
||||
{latestCatalogVersion
|
||||
? updateAvailable
|
||||
? `มีอัปเดต: v${latestCatalogVersion}`
|
||||
: `ล่าสุด: v${latestCatalogVersion}`
|
||||
: "ตรวจสอบเวอร์ชันล่าสุดไม่ได้"}
|
||||
</Badge>
|
||||
</div>
|
||||
<div className="flex gap-2">
|
||||
<Button
|
||||
|
||||
Reference in New Issue
Block a user