Skip to content

Commit 37ef6f6

Browse files
committed
fix: Frontend issues
1 parent df61e0c commit 37ef6f6

4 files changed

Lines changed: 12 additions & 12 deletions

File tree

admin/src/components/ConfigDiff/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import React from 'react';
22
import ReactDiffViewer, { DiffMethod } from 'react-diff-viewer';
33

44
import { ModalLayout, ModalBody, ModalHeader } from '@strapi/design-system/ModalLayout';
5-
import { ButtonText } from '@strapi/design-system/Text';
65
import { Grid, GridItem } from '@strapi/design-system/Grid';
76
import { Typography } from '@strapi/design-system/Typography';
87

@@ -17,9 +16,9 @@ const ConfigDiff = ({ isOpen, onClose, oldValue, newValue, configName }) => {
1716
labelledBy="title"
1817
>
1918
<ModalHeader>
20-
<ButtonText textColor="neutral800" as="h2" id="title">
19+
<Typography variant="omega" fontWeight="bold" textColor="neutral800">
2120
Config changes for {configName}
22-
</ButtonText>
21+
</Typography>
2322
</ModalHeader>
2423
<ModalBody>
2524
<Grid paddingBottom={4} style={{ textAlign: 'center' }}>

admin/src/components/ConfigList/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { isEmpty } from 'lodash';
33
import { useDispatch } from 'react-redux';
44

55
import { Table, Thead, Tbody, Tr, Th } from '@strapi/design-system/Table';
6-
import { TableLabel } from '@strapi/design-system/Text';
6+
import { Typography } from '@strapi/design-system/Typography';
77
import { BaseCheckbox } from '@strapi/design-system/BaseCheckbox';
88
import { Loader } from '@strapi/design-system/Loader';
99

@@ -127,13 +127,13 @@ const ConfigList = ({ diff, isLoading }) => {
127127
/>
128128
</Th>
129129
<Th>
130-
<TableLabel>Config name</TableLabel>
130+
<Typography variant="sigma">Config name</Typography>
131131
</Th>
132132
<Th>
133-
<TableLabel>Config type</TableLabel>
133+
<Typography variant="sigma">Config type</Typography>
134134
</Th>
135135
<Th>
136-
<TableLabel>State</TableLabel>
136+
<Typography variant="sigma">State</Typography>
137137
</Th>
138138
</Tr>
139139
</Thead>

admin/src/components/ConfirmModal/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { useIntl } from 'react-intl';
33

44
import { Dialog, DialogBody, DialogFooter } from '@strapi/design-system/Dialog';
55
import { Flex } from '@strapi/design-system/Flex';
6-
import { Text } from '@strapi/design-system/Text';
6+
import { Typography } from '@strapi/design-system/Typography';
77
import { Stack } from '@strapi/design-system/Stack';
88
import { Button } from '@strapi/design-system/Button';
99
import ExclamationMarkCircle from '@strapi/icons/ExclamationMarkCircle';
@@ -22,10 +22,10 @@ const ConfirmModal = ({ isOpen, onClose, onSubmit, type }) => {
2222
<DialogBody icon={<ExclamationMarkCircle />}>
2323
<Stack size={2}>
2424
<Flex justifyContent="center">
25-
<Text id="confirm-description" style={{ textAlign: 'center' }}>
25+
<Typography variant="omega" id="confirm-description" style={{ textAlign: 'center' }}>
2626
{formatMessage({ id: `config-sync.popUpWarning.warning.${type}_1` })}<br />
2727
{formatMessage({ id: `config-sync.popUpWarning.warning.${type}_2` })}
28-
</Text>
28+
</Typography>
2929
</Flex>
3030
</Stack>
3131
</DialogBody>

admin/src/containers/ConfigPage/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React, { useEffect } from 'react';
22
import { useDispatch, useSelector } from 'react-redux';
33
import { Map } from 'immutable';
44
import { Box } from '@strapi/design-system/Box';
5+
import { ContentLayout } from '@strapi/design-system/Layout';
56
import { useNotification } from '@strapi/helper-plugin';
67
import { Alert } from '@strapi/design-system/Alert';
78
import { Typography } from '@strapi/design-system/Typography';
@@ -23,7 +24,7 @@ const ConfigPage = () => {
2324
}, []);
2425

2526
return (
26-
<Box paddingLeft={8} paddingRight={8} paddingBottom={8}>
27+
<ContentLayout paddingBottom={8}>
2728
{appEnv === 'production' && (
2829
<Box paddingBottom={4}>
2930
<Alert variant="danger">
@@ -35,7 +36,7 @@ const ConfigPage = () => {
3536
)}
3637
<ActionButtons />
3738
<ConfigList isLoading={isLoading} diff={configDiff.toJS()} />
38-
</Box>
39+
</ContentLayout>
3940
);
4041
};
4142

0 commit comments

Comments
 (0)