Skip to content

Commit

Permalink
quick nit
Browse files Browse the repository at this point in the history
  • Loading branch information
pablonyx committed Jan 3, 2025
1 parent 38c447c commit 959ca25
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions web/src/app/admin/settings/SettingsForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import React, { useContext, useState, useEffect } from "react";
import { SettingsContext } from "@/components/settings/SettingsProvider";
import { usePaidEnterpriseFeaturesEnabled } from "@/components/settings/usePaidEnterpriseFeaturesEnabled";
import { Modal } from "@/components/Modal";
import { NEXT_PUBLIC_CLOUD_ENABLED } from "@/lib/constants";

export function Checkbox({
label,
Expand Down Expand Up @@ -218,14 +219,19 @@ export function SettingsForm() {
handleToggleSettingsField("auto_scroll", e.target.checked)
}
/>
<Checkbox
label="Anonymous Users"
sublabel="If set, users will not be required to sign in to use Danswer."
checked={settings.anonymous_user_enabled}
onChange={(e) =>
handleToggleSettingsField("anonymous_user_enabled", e.target.checked)
}
/>
{!NEXT_PUBLIC_CLOUD_ENABLED && (
<Checkbox
label="Anonymous Users"
sublabel="If set, users will not be required to sign in to use Danswer."
checked={settings.anonymous_user_enabled}
onChange={(e) =>
handleToggleSettingsField(
"anonymous_user_enabled",
e.target.checked
)
}
/>
)}
{showConfirmModal && (
<Modal
width="max-w-3xl w-full"
Expand Down

0 comments on commit 959ca25

Please sign in to comment.