2023-01-16 10:11:44 +03:00
|
|
|
import React, { ReactElement } from 'react';
|
2022-12-28 05:48:21 +03:00
|
|
|
import { Tabs } from 'antd';
|
|
|
|
|
2023-01-10 07:57:29 +03:00
|
|
|
import GeneralConfig from '../../../../components/admin/config/general/GeneralConfig';
|
|
|
|
import AppearanceConfig from '../../../../components/admin/config/general/AppearanceConfig';
|
2022-12-28 05:48:21 +03:00
|
|
|
|
2023-01-16 10:11:44 +03:00
|
|
|
import { AdminLayout } from '../../../../components/layouts/AdminLayout';
|
2023-01-19 09:38:24 +03:00
|
|
|
import { EditCustomJavascript } from '../../../../components/admin/EditCustomJavascript';
|
2023-01-16 10:11:44 +03:00
|
|
|
|
2022-12-28 05:48:21 +03:00
|
|
|
export default function PublicFacingDetails() {
|
|
|
|
return (
|
|
|
|
<div className="config-public-details-page">
|
|
|
|
<Tabs
|
|
|
|
defaultActiveKey="1"
|
|
|
|
centered
|
|
|
|
items={[
|
|
|
|
{
|
|
|
|
label: `General`,
|
|
|
|
key: '1',
|
|
|
|
children: <GeneralConfig />,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: `Appearance`,
|
|
|
|
key: '2',
|
|
|
|
children: <AppearanceConfig />,
|
|
|
|
},
|
2023-01-19 09:38:24 +03:00
|
|
|
{
|
|
|
|
label: `Custom Scripting`,
|
|
|
|
key: '3',
|
|
|
|
children: <EditCustomJavascript />,
|
|
|
|
},
|
2022-12-28 05:48:21 +03:00
|
|
|
]}
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
2023-01-16 10:11:44 +03:00
|
|
|
|
|
|
|
PublicFacingDetails.getLayout = function getLayout(page: ReactElement) {
|
|
|
|
return <AdminLayout page={page} />;
|
|
|
|
};
|