Skip to content
This repository was archived by the owner on Jun 10, 2024. It is now read-only.

Commit 0bade50

Browse files
authored
Merge pull request #269 from GinaIsaia/update-about-page
Update about page
2 parents dca183a + 7c552fc commit 0bade50

File tree

3 files changed

+19
-15
lines changed

3 files changed

+19
-15
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lfai/egeria-ui-core",
3-
"version": "4.3.4",
3+
"version": "4.3.5",
44
"description": "Core library that includes generic reactjs components used across the user interface.",
55
"license": "Apache-2.0",
66
"repository": {
@@ -43,7 +43,7 @@
4343
"@emotion/cache": "^11.10.5",
4444
"@emotion/react": "^11.10.5",
4545
"@emotion/serialize": "^1.1.1",
46-
"@lfai/egeria-js-commons": "4.3.6",
46+
"@lfai/egeria-js-commons": "4.3.7",
4747
"@mantine/core": "^5.6.3",
4848
"@mantine/hooks": "^5.6.3",
4949
"@mantine/notifications": "^5.6.4",

src/components/About/index.tsx

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from "react";
2-
import { Accordion, LoadingOverlay, Paper, Text } from '@mantine/core';
2+
import { LoadingOverlay, Paper, Table, Title } from '@mantine/core';
33
import { capitalize } from "@lfai/egeria-js-commons";
44
import { apiUrl } from '@lfai/egeria-js-commons';
55

@@ -80,24 +80,28 @@ class EgeriaAbout extends React.Component<Props, State> {
8080

8181
render() {
8282
const { loaded, error, data }: any = this.state;
83-
8483
return (<>
8584
<div style={{ height:'100%', position: 'relative' }}>
8685
<LoadingOverlay visible={!loaded} />
8786

88-
{ !error && loaded && <Paper shadow="xs" p="md" style={{height: '100%'}}>
89-
<Text size="xl">About</Text>
90-
<Accordion>
87+
{ !error && loaded && <>
88+
<Paper radius='md' p='lg' withBorder mb='md'>
89+
<Title order={2}>About</Title>
90+
</Paper>
91+
<Paper radius='md' shadow="xs" p="lg" withBorder style={{height: '100%'}}>
92+
<Table striped>
93+
<tbody>
9194
{ Object.keys(data).filter(k => k !== 'loaded').map((k, index) => {
9295
return (
93-
<Accordion.Item value={k} key={index}>
94-
<Accordion.Control>{ capitalize(k) }</Accordion.Control>
95-
<Accordion.Panel>{ capitalize(data[k]) }</Accordion.Panel>
96-
</Accordion.Item>
96+
<tr key={index}>
97+
<td style={{width: '20%'}}><strong>{ capitalize(k) }</strong></td>
98+
<td>{ capitalize(data[k]) }</td>
99+
</tr>
97100
);
98101
}) }
99-
</Accordion>
100-
</Paper> }
102+
</tbody>
103+
</Table>
104+
</Paper> </>}
101105
</div>
102106
</>);
103107
}

0 commit comments

Comments
 (0)