Release v0.1.6
This commit is contained in:
@@ -5,9 +5,11 @@ import LoginModal from "./LoginModal";
|
||||
|
||||
export default function PublicLandingPage({
|
||||
settings,
|
||||
maintenanceMode,
|
||||
onLogin
|
||||
}: {
|
||||
settings: ApiSettings;
|
||||
maintenanceMode?: { enabled: boolean; message?: string | null };
|
||||
onLogin: (response: LoginResponse) => void;
|
||||
}) {
|
||||
const [loginOpen, setLoginOpen] = useState(false);
|
||||
@@ -21,6 +23,13 @@ export default function PublicLandingPage({
|
||||
Sign in to open the modules available to your tenant and role.
|
||||
</p>
|
||||
|
||||
{maintenanceMode?.enabled && (
|
||||
<div className="public-maintenance alert warning">
|
||||
<strong>Maintenance mode is active.</strong>
|
||||
<span>{maintenanceMode.message || "Only users with maintenance access can use the system right now."}</span>
|
||||
</div>
|
||||
)}
|
||||
|
||||
<div className="public-actions">
|
||||
<Button variant="primary" onClick={() => setLoginOpen(true)}>Sign in</Button>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user