implemented organisation features

This commit is contained in:
2026-01-24 19:44:40 +00:00
parent c37c3742b9
commit f65ad0c593
8 changed files with 120 additions and 106 deletions

View File

@@ -929,8 +929,7 @@ function Organisations({ trigger }: { trigger?: ReactNode }) {
<h2 className="text-xl font-600 mb-2">Features</h2>
<div className="flex flex-col gap-2 w-full">
{Object.keys(DEFAULT_FEATURES).map((feature) => (
<div key={feature}>
{unCamelCase(feature)}:{" "}
<div key={feature} className="flex items-center gap-2 p-1">
<Switch
checked={Boolean(selectedOrganisation?.Organisation.features[feature])}
onCheckedChange={async (checked) => {
@@ -949,7 +948,9 @@ function Organisations({ trigger }: { trigger?: ReactNode }) {
);
await invalidateOrganisations();
}}
color={"#ff0000"}
/>
<span className={"text-sm"}>{unCamelCase(feature)}</span>
</div>
))}
</div>