Skip to content

Commit

Permalink
Refactor VersionCheck component: Update links to use brand icons
Browse files Browse the repository at this point in the history
  • Loading branch information
Adammatthiesen committed Dec 20, 2024
1 parent 851ecb6 commit 55fc9a9
Showing 1 changed file with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
import { undefined } from 'astro:schema';
import { getUserData, verifyUserPermissionLevel } from 'studiocms:auth/lib/user';
import { StudioCMSRoutes } from 'studiocms:lib';
import studioCMS_SDK_Cache from 'studiocms:sdk/cache';
Expand Down Expand Up @@ -63,17 +62,16 @@ function dateWithTimeAndZone(date: Date) {

<div class="version-checker">
<div class="version-container">
<code class="version-check" id="version-modal-trigger">
<code class="version-check" id="version-modal-trigger" title="Click for more information" aria-label="Click for more information">
<span class="version-line">StudioCMS v{currentVersion}</span>
<span class="status" class:list={[classList]} />
</code>

{
comparison === -1
? <span class="pre-release-message">You are currently on an outdated version.</span>
: comparison === 0
? undefined
: <span class="pre-release-message">You are currently on a prerelease.</span>
{ comparison === -1
? <span class="pre-release-message">You are currently on an outdated version.</span>
: comparison === 0
? undefined
: <span class="pre-release-message">You are currently on a prerelease.</span>
}
</div>

Expand Down

0 comments on commit 55fc9a9

Please sign in to comment.