Skip to content

Commit 5633744

Browse files
authored
Merge pull request #1304 from layer5io/chore/complete-lint
Chore: Complete lint
2 parents de11f74 + 9e89991 commit 5633744

File tree

32 files changed

+140
-113
lines changed

32 files changed

+140
-113
lines changed

package-lock.json

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

src/__testing__/PeopleIcon.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ describe('PeopleIcon', () => {
1212
expect(svgElement.getAttribute('width')).toBe('24');
1313
expect(svgElement.getAttribute('height')).toBe('24');
1414
});
15-
});
15+
});

src/custom/CatalogDesignTable/CatalogDesignTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable @typescript-eslint/no-explicit-any */
2-
import _ from 'lodash';
32
import { MUIDataTableColumn } from '@sistent/mui-datatables';
3+
import _ from 'lodash';
44
import { useCallback, useMemo, useRef, useState } from 'react';
55
import { PublishIcon } from '../../icons';
66
import { CHARCOAL } from '../../theme';

src/custom/CatalogDetail/ChallengesSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,4 @@ const ChallengesSection: React.FC<ChallengesSectionProps> = ({ filteredAcademyDa
7373
);
7474
};
7575

76-
export default ChallengesSection;
76+
export default ChallengesSection;

src/custom/DashboardWidgets/GettingStartedWidget/ActionButtonCard.tsx

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,13 @@ const ActionButtonCard = ({
147147
<CustomComponentWrapper>{customComponent}</CustomComponentWrapper>
148148
{actionButton && (
149149
<CardActions>
150-
<Button disabled={disabled} size="large" variant="contained" href={href} onClick={onClick}>
150+
<Button
151+
disabled={disabled}
152+
size="large"
153+
variant="contained"
154+
href={href}
155+
onClick={onClick}
156+
>
151157
{btnTitle}
152158
</Button>
153159
</CardActions>
@@ -193,7 +199,13 @@ const ActionButtonCard = ({
193199
<CustomComponentWrapper>{customComponent}</CustomComponentWrapper>
194200
{actionButton && (
195201
<CardActions>
196-
<Button disabled={disabled} size="large" variant="contained" href={href} onClick={onClick}>
202+
<Button
203+
disabled={disabled}
204+
size="large"
205+
variant="contained"
206+
href={href}
207+
onClick={onClick}
208+
>
197209
{showProgress ? (percentage === 100 ? 'Revisit' : btnTitle) : btnTitle}
198210
</Button>
199211
</CardActions>

src/custom/DashboardWidgets/RecentDesignWidget.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ const DesignCard: React.FC<DesignCardProps> = ({
206206
{resources.map((item) => (
207207
<ResourceItem key={item.link}>
208208
<Box sx={{ flexShrink: 0, display: 'flex', alignItems: 'center' }}>
209-
{item.icon}
209+
{item.icon}
210210
</Box>
211211
<ResourceLink href={item.link}>{item.name}</ResourceLink>
212212

src/custom/PerformersSection/PerformersSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ const PerformersSection: React.FC<PerformersSectionProps> = ({
273273
</Box>
274274
{onOpenLeaderboard && (
275275
<div>
276-
<Button variant="contained" size='large' onClick={() => onOpenLeaderboard()}>
276+
<Button variant="contained" size="large" onClick={() => onOpenLeaderboard()}>
277277
<TropyIcon
278278
style={{
279279
height: '2rem',

src/custom/PerformersSection/PerformersToogleButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const PerformersSectionButton: React.FC<PerformersSectionButtonProps> = ({ open,
2323
<Button
2424
variant="contained"
2525
onClick={handleClick}
26-
size='large'
26+
size="large"
2727
style={{
2828
backgroundColor: open ? undefined : theme.palette.background.constant?.disabled
2929
}}

src/custom/StyledCard/StyledCard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import React from 'react';
21
import { SxProps, Theme } from '@mui/material';
2+
import React from 'react';
33
import { Box, Button, Card, CardActions, CardContent, Typography } from '../../base';
44

55
export interface StyledCardProps {
@@ -43,7 +43,7 @@ function StyledCard({
4343
</Box>
4444
{btntitle && (
4545
<CardActions>
46-
<Button variant="contained" size='large' onClick={onclick} disabled={disabled}>
46+
<Button variant="contained" size="large" onClick={onclick} disabled={disabled}>
4747
{btntitle}
4848
</Button>
4949
</CardActions>

src/custom/StyledCard/style.tsx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
import { styled } from '@mui/material';
22
import { Link, ListItem } from '../../base';
33

4-
export const backgroundImg = styled('div')<{ backgroundImage?: string }>(
5-
({ backgroundImage }) => ({
6-
backgroundImage: backgroundImage ? `url(${backgroundImage})` : 'none',
7-
backgroundPosition: 'right bottom',
8-
backgroundSize: 'cover',
9-
backgroundRepeat: 'no-repeat'
10-
})
11-
);
4+
export const backgroundImg = styled('div')<{ backgroundImage?: string }>(({ backgroundImage }) => ({
5+
backgroundImage: backgroundImage ? `url(${backgroundImage})` : 'none',
6+
backgroundPosition: 'right bottom',
7+
backgroundSize: 'cover',
8+
backgroundRepeat: 'no-repeat'
9+
}));
1210

1311
export const CustomCode = styled('code')(() => ({
1412
backgroundColor: '#212121',

0 commit comments

Comments
 (0)