The menu shows only Connect while signed out and the section links once signed in; / goes to Connect or Identities accordingly. Yes/no settings in the engine forms put the box beside its text. The Secrets page now has New secrets engine on its own line, then a labelled engine picker with Settings and Delete beside it, then the breadcrumbs, and dynamic engines use the full width. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
9 lines
327 B
TypeScript
9 lines
327 B
TypeScript
import { Navigate } from 'react-router'
|
|
import { useSession } from './api/useSession'
|
|
|
|
/** The landing route: straight to the work when signed in, otherwise to the only page that can be used. */
|
|
export function Home() {
|
|
const { client } = useSession()
|
|
return <Navigate to={client ? '/identities' : '/connect'} replace />
|
|
}
|