Skip to content

Commit 5ff36d6

Browse files
committed
fix: lint format
1 parent ac02bb9 commit 5ff36d6

File tree

30 files changed

+79
-80
lines changed

30 files changed

+79
-80
lines changed

src/components/CustomTooltip/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ const CustomTooltip: React.FC<{
2222
);
2323
};
2424

25-
export default CustomTooltip;
25+
export default CustomTooltip;

src/components/Footer/__tests__/Footer.test.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ describe('Footer Component', () => {
1313
render(<Footer />);
1414
const communityButton = screen.getByText(/Join our community/);
1515
fireEvent.click(communityButton);
16-
expect(window.open).toHaveBeenCalledWith('https://community.deriv.com/c/developers/48', '_blank');
16+
expect(window.open).toHaveBeenCalledWith(
17+
'https://community.deriv.com/c/developers/48',
18+
'_blank',
19+
);
1720
});
1821

1922
it('opens Telegram in a new tab when Telegram button is clicked', () => {

src/components/HomePageSkeleton/index.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ const HomePageSkeleton: React.FC = () => {
88
return (
99
<div className={styles['skeleton-container']}>
1010
{/* Navigation Bar Skeleton */}
11-
<nav className={`${styles['skeleton-navbar']} ${isMobile ? styles['skeleton-navbar-mobile'] : ''}`}>
11+
<nav
12+
className={`${styles['skeleton-navbar']} ${
13+
isMobile ? styles['skeleton-navbar-mobile'] : ''
14+
}`}
15+
>
1216
{isMobile ? (
1317
// Mobile navigation layout - 1 on left, 2 on right
1418
<>

src/contexts/app-manager/app-manager.provider.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ const AppManagerContextProvider = ({ children }: TAppManagerContextProps) => {
2727
setCurrentTab(updatedTab);
2828

2929
const bodySelector = document.querySelector('body');
30-
if(bodySelector) { bodySelector.scrollTop = 0; }
30+
if (bodySelector) {
31+
bodySelector.scrollTop = 0;
32+
}
3133
}, []);
3234

3335
const handleCurrentUpdatingItem = useCallback((item: ApplicationObject) => {

src/features/Apiexplorer/RequestJSONBox/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function RequestJSONBox<T extends TSocketEndpointNames>({
2323
const is_subscribe = useMemo(() => {
2424
return request_example?.includes('subscribe');
2525
}, [request_example]);
26-
26+
2727
return (
2828
<div className={style.playgroundBox}>
2929
<div className={style.formContent}>

src/features/Apiexplorer/RequestResponseRenderer/PlaygroundSection/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const PlaygroundSection = <T extends TSocketEndpointNames | TSocketSubscribableE
2828
const ref: RefObject<HTMLDivElement> = useRef(null);
2929

3030
const updateHistory = () => {
31-
if(!response_state) {
31+
if (!response_state) {
3232
setPlaygroundHistory([]);
3333
return;
3434
}

src/features/Apiexplorer/SubscribeRenderer/__tests__/SubscribeRenderer.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ describe('SubscribeRenderer', () => {
137137

138138
render(<SubscribeRenderer name='ticks' auth={1} reqData={request_data} />);
139139
const button = await screen.getByTestId('send-request');
140-
140+
141141
expect(button).toBeVisible();
142142

143143
await act(async () => {
@@ -213,7 +213,7 @@ describe('SubscribeRenderer', () => {
213213
});
214214
expect(mockUnsubscribe.call.length).toBe(1);
215215
});
216-
216+
217217
it('should call unsubscribe when unmounting the component', async () => {
218218
const { unmount } = render(<SubscribeRenderer name='ticks' auth={1} reqData={request_data} />);
219219
unmount();

src/features/Apiexplorer/explorer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,4 +104,4 @@ export default function ApiExplorerFeatures() {
104104
<Footer />
105105
</>
106106
);
107-
}
107+
}

src/features/Home/HeroHeader/HeroHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const HeroHeader = () => {
2222
<br />
2323
<Translate>platform - for yourself or for your business.</Translate>
2424
</Text>
25-
<a href="https://developers.deriv.com">
25+
<a href='https://developers.deriv.com'>
2626
<Button type='button' className={styles.HeroButton}>
2727
<Translate>Quick Start</Translate>
2828
</Button>

src/features/dashboard/components/api-token-form/__tests__/api-token.form.test.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ describe('Home Page', () => {
129129

130130
expect(adminCheckbox.checked).toBeTruthy();
131131
});
132-
132+
133133
it('Should create token on form submit', async () => {
134134
const nameInput = screen.getByRole('textbox');
135135

@@ -210,7 +210,10 @@ describe('Home Page', () => {
210210
};
211211

212212
it('Should show an error when the user tries to create more than 30 tokens', async () => {
213-
mockUseApiToken.mockImplementation(() => ({ tokens: createMaxTokens(), lastTokenDisplayName: '' }));
213+
mockUseApiToken.mockImplementation(() => ({
214+
tokens: createMaxTokens(),
215+
lastTokenDisplayName: '',
216+
}));
214217
render(<ApiTokenForm />);
215218

216219
const nameInput = screen.getByRole('textbox');

0 commit comments

Comments
 (0)