Skip to content

Commit

Permalink
refactor: fix some lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
kieranroneill committed Nov 20, 2024
1 parent 7994e9e commit 893e0c6
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ const MoreInformationAccordion: FC<IProps> = ({
fontSize,
isOpen,
label,
minButtonHeight,
onChange,
}) => {
const { t } = useTranslation();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ import PasskeyManager from '@extension/managers/PasskeyManager';
import PasswordManager from '@extension/managers/PasswordManager';

// hooks
import useColorModeValue from '@extension/hooks/useColorModeValue';
import useGenericInput from '@extension/hooks/useGenericInput';
import useSubTextColor from '@extension/hooks/useSubTextColor';

Expand Down Expand Up @@ -71,10 +70,6 @@ const AuthenticationModal: FC<IProps> = ({
const logger = useSelectLogger();
const passkey = useSelectPasskeysPasskey();
// hooks
const primaryColorCode = useColorModeValue(
theme.colors.primaryLight['500'],
theme.colors.primaryDark['500']
);
const {
error: passwordError,
label: passwordLabel,
Expand Down
1 change: 0 additions & 1 deletion src/extension/modals/MoveGroupModal/MoveGroupModal.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import {
Heading,
HStack,
Modal,
ModalBody,
ModalContent,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
useDisclosure,
VStack,
} from '@chakra-ui/react';
import React, { FC, useEffect } from 'react';
import React, { type FC, useEffect } from 'react';
import { useTranslation } from 'react-i18next';
import { IoTrashOutline } from 'react-icons/io5';
import { GoShieldSlash } from 'react-icons/go';
Expand All @@ -29,7 +29,6 @@ import { BODY_BACKGROUND_COLOR, DEFAULT_GAP } from '@extension/constants';
import { create as createNotification } from '@extension/features/notifications';

// hooks
import useColorModeValue from '@extension/hooks/useColorModeValue';
import useDefaultTextColor from '@extension/hooks/useDefaultTextColor';
import useSubTextColor from '@extension/hooks/useSubTextColor';
import useRemovePasskey from './hooks/useRemovePasskey';
Expand Down Expand Up @@ -73,10 +72,6 @@ const RemovePasskeyModal: FC<IProps> = ({ onClose, removePasskey }) => {
resetAction: resetRemovePasskeyAction,
} = useRemovePasskey();
const defaultTextColor = useDefaultTextColor();
const primaryColorCode = useColorModeValue(
theme.colors.primaryLight['500'],
theme.colors.primaryDark['500']
);
const subTextColor = useSubTextColor();
// misc
const isLoading = encrypting || requesting || saving;
Expand Down
5 changes: 3 additions & 2 deletions src/extension/pages/AccountPage/AccountPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ import ReKeyedAccountBadge from '@extension/components/RekeyedAccountBadge';
import WatchAccountBadge from '@extension/components/WatchAccountBadge';
import AccountPageSkeletonContent from './AccountPageSkeletonContent';

// components
import GroupBadge from '@extension/components/GroupBadge';

// constants
import {
ACCOUNT_PAGE_HEADER_ITEM_HEIGHT,
Expand Down Expand Up @@ -118,8 +121,6 @@ import type {
import convertPublicKeyToAVMAddress from '@extension/utils/convertPublicKeyToAVMAddress';
import ellipseAddress from '@extension/utils/ellipseAddress';
import isReKeyedAuthAccountAvailable from '@extension/utils/isReKeyedAuthAccountAvailable';
import { HiSave } from 'react-icons/hi';
import GroupBadge from '@extension/components/GroupBadge';

const AccountPage: FC = () => {
const { t } = useTranslation();
Expand Down
3 changes: 1 addition & 2 deletions src/extension/repositories/BaseRepository/BaseRepository.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { decode as decodeHex, encode as encodeHex } from '@stablelib/hex';
import browser, { Menus } from 'webextension-polyfill';
import browser from 'webextension-polyfill';

// types
import type { TStorageItemTypes } from '@extension/types';
import ItemType = Menus.ItemType;

export default class BaseRepository {
/**
Expand Down

0 comments on commit 893e0c6

Please sign in to comment.