File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed
Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { NavigationMenu } from '@/components/ui/navigation/NavigationMenu';
33import { NavigationMenuItem } from '@/components/ui/navigation/NavigationMenuItem' ;
44import { NavigationMenuLink } from '@/components/ui/navigation/NavigationMenuLink' ;
55import { NavigationMenuList } from '@/components/ui/navigation/NavigationMenuList' ;
6+ import { Version } from '@/components/Version' ;
67import { defaultInstanceRoute , isLocalStudio } from '@/config/constants' ;
78import { useLogoutMutation } from '@/features/auth/hooks/useLogout' ;
89import { useOverallAuth } from '@/hooks/useAuth' ;
@@ -39,7 +40,7 @@ function MobileNav({ signOut }: { signOut: () => void }) {
3940 < div className = "flex items-center justify-between" >
4041 < Link to = { isLocalStudio ? defaultInstanceRoute : defaultCloudRoute } >
4142 < Logo />
42- < span className = "text-grey text-xs inline-block pl-2" > { import . meta . env . VITE_STUDIO_VERSION } </ span >
43+ < Version / >
4344 </ Link >
4445 < button
4546 type = "button"
@@ -137,7 +138,7 @@ function DesktopNav({ signOut }: { signOut: () => void }) {
137138 < div className = "inline-block" >
138139 < Link to = { isLocalStudio ? defaultInstanceRoute : defaultCloudRoute } >
139140 < Logo />
140- < span className = "text-grey text-xs inline-block pl-2" > { import . meta . env . VITE_STUDIO_VERSION } </ span >
141+ < Version / >
141142 </ Link >
142143 </ div >
143144 < NavigationMenu >
@@ -233,7 +234,7 @@ function AnonymousNav() {
233234 < div className = "inline-block" >
234235 < Link to = "/sign-in" >
235236 < Logo />
236- < span className = "text-grey text-xs inline-block pl-2" > { import . meta . env . VITE_STUDIO_VERSION } </ span >
237+ < Version / >
237238 </ Link >
238239 </ div >
239240 < NavigationMenu >
Original file line number Diff line number Diff line change 1+ import { badgeVariants } from '@/components/ui/badgeVariants' ;
2+ import { cn } from '@/lib/cn' ;
3+
4+ export function Version ( ) {
5+ return ( < >
6+ < span
7+ className = { cn ( badgeVariants ( { variant : 'default' } ) , 'text-xs inline-block ml-2 align-text-top' ) }
8+ > { import . meta. env . VITE_STUDIO_VERSION } BETA</ span >
9+ </ > ) ;
10+ }
You can’t perform that action at this time.
0 commit comments