mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-07-29 15:11:52 +00:00
Show header information of the gedcom file on the side panel (#252)
* Show header information of the gedcom file on the side panel #251 * Format creation date in HEAD section
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import {SourceHead} from '../head/head';
|
||||
import {GedcomData} from '../../util/gedcom_util';
|
||||
import {ParsedQuery} from 'query-string';
|
||||
import {FormattedMessage} from 'react-intl';
|
||||
import {Checkbox, Form, Header, Item} from 'semantic-ui-react';
|
||||
@@ -74,11 +76,13 @@ export function configToArgs(config: Config): ParsedQuery<any> {
|
||||
}
|
||||
|
||||
export function ConfigPanel(props: {
|
||||
gedcom: GedcomData;
|
||||
config: Config;
|
||||
onChange: (config: Config) => void;
|
||||
}) {
|
||||
return (
|
||||
<Form className="details">
|
||||
<>
|
||||
{SourceHead(props.gedcom)}<Form className="details">
|
||||
<Item.Group>
|
||||
<Item>
|
||||
<Item.Content>
|
||||
@@ -230,5 +234,6 @@ export function ConfigPanel(props: {
|
||||
</Item>
|
||||
</Item.Group>
|
||||
</Form>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user