chore: make version indicators non-selectable

This commit is contained in:
Aman Harwara
2023-01-16 14:42:57 +05:30
parent d2fba978f8
commit 094eaad943

View File

@@ -80,17 +80,17 @@ const WhatsNew = ({ application }: { application: WebApplication }) => {
<div className="flex items-start"> <div className="flex items-start">
<Title className="mb-3 flex">{version.version}</Title> <Title className="mb-3 flex">{version.version}</Title>
{version.version === appVersion && ( {version.version === appVersion && (
<div className="ml-2 rounded bg-info px-2 py-1 text-[10px] font-bold text-info-contrast"> <div className="ml-2 select-none rounded bg-info px-2 py-1 text-[10px] font-bold text-info-contrast">
Your Version Your Version
</div> </div>
)} )}
{isLatest && ( {isLatest && (
<div className="ml-2 rounded bg-success px-2 py-1 text-[10px] font-bold text-success-contrast"> <div className="ml-2 select-none rounded bg-success px-2 py-1 text-[10px] font-bold text-success-contrast">
Latest Version Latest Version
</div> </div>
)} )}
{isUnreadVersion && ( {isUnreadVersion && (
<div className="ml-2 rounded bg-success px-2 py-1 text-[10px] font-bold text-success-contrast"> <div className="ml-2 select-none rounded bg-success px-2 py-1 text-[10px] font-bold text-success-contrast">
New New
</div> </div>
)} )}