Skip to content

Commit

Permalink
resolve ts errors :
Browse files Browse the repository at this point in the history
- move ts expect error in HealthItem
- remove ts expect error and change deprecated padding for spacing
  • Loading branch information
JeanMarcMilletScality committed Sep 25, 2024
1 parent ec56fd0 commit df46a50
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ui/src/components/HealthItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ const HealthItem = ({
{showArrow && (
<Icon
name="Angle-right"
// @ts-expect-error - FIXME when you are working on it
style={{
// @ts-expect-error - FIXME when you are working on it
selfAlign: 'flex-end',
}}
/>
Expand Down
7 changes: 3 additions & 4 deletions ui/src/components/TableRow.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import styled from 'styled-components';
import { Tooltip, ConstrainedText, Icon } from '@scality/core-ui';
import { fontWeight, padding } from '@scality/core-ui/dist/style/theme';
import { Tooltip, ConstrainedText, Icon, spacing } from '@scality/core-ui';
import { fontWeight } from '@scality/core-ui/dist/style/theme';
import { useIntl } from 'react-intl';
const TableRowStyle = styled.div`
&:hover,
Expand Down Expand Up @@ -37,10 +37,9 @@ export const UnknownIcon = ({ name }) => {
<Icon
name={name}
color="textSecondary"
// @ts-expect-error - FIXME when you are working on it
style={{
height: 30,
paddingTop: padding.base,
paddingTop: spacing.r16,
}}
/>
);
Expand Down

0 comments on commit df46a50

Please sign in to comment.