Skip to content

Commit 4b09392

Browse files
committed
cleanup
1 parent 67cd295 commit 4b09392

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

special-pages/pages/new-tab/app/privacy-stats/components/BodyExpansionProvider.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { createContext, h } from 'preact';
2-
import { useContext } from 'preact/hooks';
3-
import { useMemo, useState } from 'preact/hooks';
2+
import { useContext, useMemo, useState } from 'preact/hooks';
43
import { useMessaging } from '../../types.js';
54

65
/**

special-pages/pages/new-tab/app/privacy-stats/components/PrivacyStats.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ export function CompanyList({ rows, formatter, largestTrackerCount }) {
134134
);
135135
}
136136

137+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
137138
const states = /** @type {const} */ ([
138139
'few_top+other',
139140
'few_top',

special-pages/pages/new-tab/app/privacy-stats/components/PrivacyStatsProvider.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import { createContext, h } from 'preact';
2-
import { useContext, useEffect, useMemo, useReducer, useRef, useState } from 'preact/hooks';
2+
import { useEffect, useReducer, useRef } from 'preact/hooks';
33
import { useMessaging } from '../../types.js';
44
import { PrivacyStatsService } from '../privacy-stats.service.js';
55
import { reducer, useConfigSubscription, useDataSubscription, useInitialDataAndConfig } from '../../service.hooks.js';
6-
import { BodyExpansionContext as BodyExpansionContext1 } from './BodyExpansionProvider.js';
76

87
/**
98
* @typedef {import('../../../types/new-tab.ts').PrivacyStatsData} PrivacyStatsData
@@ -43,7 +42,6 @@ export function PrivacyStatsProvider(props) {
4342

4443
// const [state, dispatch] = useReducer(withLog('PrivacyStatsProvider', reducer), initial)
4544
const [state, dispatch] = useReducer(reducer, initial);
46-
const messaging = useMessaging();
4745

4846
// create an instance of `PrivacyStatsService` for the lifespan of this component.
4947
const service = useService();

0 commit comments

Comments
 (0)