Files
esign/apps/remix/app/routes/_authenticated+/o.$orgUrl.settings.general.tsx
zooqueen fb4e3df0e3 rename: @hanzo/sign-* → @hanzo/esign-* (full eSign brand consistency)
The product is branded Hanzo eSign (esign.hanzo.ai, repo hanzoai/esign).
Rename all workspace packages @hanzo/sign-* → @hanzo/esign-* (1052 files)
and align docker/Dockerfile turbo --scope/--filter to the actual remix
package name @hanzo/esign (was a pre-existing mismatch with -remix that
broke the build). Protected deps (@hanzo/insights, @hanzo/logo) untouched.
2026-06-21 19:56:09 -07:00

66 lines
2.0 KiB
TypeScript

import { msg } from '@lingui/core/macro';
import { useLingui } from '@lingui/react';
import { Trans } from '@lingui/react/macro';
import { useCurrentOrganisation } from '@hanzo/esign-lib/client-only/providers/organisation';
import { canExecuteOrganisationAction } from '@hanzo/esign-lib/utils/organisations';
import { Alert, AlertDescription, AlertTitle } from '@hanzo/esign-ui/primitives/alert';
import { OrganisationDeleteDialog } from '~/components/dialogs/organisation-delete-dialog';
import { AvatarImageForm } from '~/components/forms/avatar-image';
import { OrganisationUpdateForm } from '~/components/forms/organisation-update-form';
import { SettingsHeader } from '~/components/general/settings-header';
import { appMetaTags } from '~/utils/meta';
export function meta() {
return appMetaTags('Settings');
}
export default function OrganisationSettingsGeneral() {
const { _ } = useLingui();
const organisation = useCurrentOrganisation();
return (
<div className="max-w-2xl">
<SettingsHeader
title={_(msg`General`)}
subtitle={_(msg`Here you can edit your organisation details.`)}
/>
<div className="space-y-8">
<AvatarImageForm organisation={organisation} />
<OrganisationUpdateForm />
</div>
{canExecuteOrganisationAction(
'DELETE_ORGANISATION',
organisation.currentOrganisationRole,
) && (
<>
<hr className="my-4" />
<Alert
className="flex flex-col justify-between p-6 sm:flex-row sm:items-center"
variant="neutral"
>
<div className="mb-4 sm:mb-0">
<AlertTitle>
<Trans>Delete organisation</Trans>
</AlertTitle>
<AlertDescription className="mr-2">
<Trans>
This organisation, and any associated data will be permanently deleted.
</Trans>
</AlertDescription>
</div>
<OrganisationDeleteDialog />
</Alert>
</>
)}
</div>
);
}