mirror of
https://github.com/docmost/docmost.git
synced 2025-11-12 18:22:37 +10:00
* feat: implement space and workspace icons - Create reusable AvatarUploader component supporting avatars, space icons, and workspace icons - Add Sharp package for server-side image resizing and optimization - Create reusable AvatarUploader component supporting avatars, space icons, and workspace icons - Support removing icons * add workspace logo support - add upload loader - add white background to transparent image - other fixes and enhancements * dark mode * fixes * cleanup
30 lines
945 B
TypeScript
30 lines
945 B
TypeScript
import SettingsTitle from "@/components/settings/settings-title.tsx";
|
|
import WorkspaceNameForm from "@/features/workspace/components/settings/components/workspace-name-form";
|
|
import WorkspaceIcon from "@/features/workspace/components/settings/components/workspace-icon.tsx";
|
|
import { useTranslation } from "react-i18next";
|
|
import { getAppName, isCloud } from "@/lib/config.ts";
|
|
import { Helmet } from "react-helmet-async";
|
|
import ManageHostname from "@/ee/components/manage-hostname.tsx";
|
|
import { Divider } from "@mantine/core";
|
|
|
|
export default function WorkspaceSettings() {
|
|
const { t } = useTranslation();
|
|
return (
|
|
<>
|
|
<Helmet>
|
|
<title>Workspace Settings - {getAppName()}</title>
|
|
</Helmet>
|
|
<SettingsTitle title={t("General")} />
|
|
<WorkspaceIcon />
|
|
<WorkspaceNameForm />
|
|
|
|
{isCloud() && (
|
|
<>
|
|
<Divider my="md" />
|
|
<ManageHostname />
|
|
</>
|
|
)}
|
|
</>
|
|
);
|
|
}
|