2020-12-26 18:04:23 -08:00
|
|
|
import React, { useContext } from 'react';
|
2020-12-26 19:44:09 -08:00
|
|
|
import { Typography, Input, Form } from 'antd';
|
|
|
|
|
|
|
|
import TextField from './form-textfield';
|
2020-12-26 18:04:23 -08:00
|
|
|
|
|
|
|
|
|
|
|
import { ServerStatusContext } from '../../../utils/server-status-context';
|
|
|
|
|
|
|
|
const { Title } = Typography;
|
|
|
|
|
|
|
|
export default function PublicFacingDetails() {
|
|
|
|
const serverStatusData = useContext(ServerStatusContext);
|
|
|
|
const { serverConfig, setConfigField } = serverStatusData || {};
|
|
|
|
|
|
|
|
const { instanceDetails = {}, } = serverConfig;
|
|
|
|
|
|
|
|
const { name, summary, title } = instanceDetails;
|
|
|
|
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<Title level={2}>Edit your public facing instance details</Title>
|
|
|
|
<div className="config-public-details-container">
|
2020-12-26 19:44:09 -08:00
|
|
|
<div className="text-fields">
|
|
|
|
<Form name="text-fields" labelCol={{ span: 8 }} wrapperCol={{ span: 16 }}>
|
|
|
|
<TextField
|
|
|
|
label="name"
|
|
|
|
value={name}
|
|
|
|
/>
|
|
|
|
</Form>
|
2020-12-26 18:04:23 -08:00
|
|
|
</div>
|
|
|
|
<div className="misc-optionals">
|
2020-12-26 19:44:09 -08:00
|
|
|
add social handles comp
|
2020-12-26 18:04:23 -08:00
|
|
|
<br/>
|
2020-12-26 19:44:09 -08:00
|
|
|
add tags comp
|
2020-12-26 18:04:23 -08:00
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|