plane/god-mode/components/views/general-view.tsx

39 lines
1.2 KiB
TypeScript
Raw Normal View History

2024-02-15 06:51:19 +00:00
import { observer } from "mobx-react-lite";
// hooks
import useInstance from "hooks/use-instance";
// ui
import { Loader } from "@plane/ui";
// components
import { InstanceGeneralForm } from "components/forms";
export const GeneralView = observer(() => {
const { instance, instanceAdmins } = useInstance();
2024-01-31 08:33:52 +00:00
return (
<div className="flex h-full w-full flex-col gap-8">
<div className="mb-2 border-b border-custom-border-100 pb-3">
<div className="pb-1 text-xl font-medium text-custom-text-100">
ID your instance easily
</div>
<div className="text-sm font-normal text-custom-text-300">
Change the name of your instance and instance admin e-mail addresses.
If you have a paid subscription, you will find your license key here.
</div>
</div>
2024-02-15 06:51:19 +00:00
{instance && instanceAdmins ? (
2024-01-31 08:33:52 +00:00
<InstanceGeneralForm
instance={instance}
instanceAdmins={instanceAdmins}
/>
) : (
<Loader className="space-y-4">
<div className="grid grid-cols-2 gap-x-8 gap-y-4">
<Loader.Item height="50px" />
<Loader.Item height="50px" />
</div>
<Loader.Item height="50px" />
</Loader>
2024-02-15 06:51:19 +00:00
)}
2024-01-31 08:33:52 +00:00
</div>
);
2024-02-15 06:51:19 +00:00
});