Skip to content

Commit 8f87265

Browse files
committed
remove unused imports
1 parent 0921fc1 commit 8f87265

4 files changed

Lines changed: 2 additions & 6 deletions

File tree

src/components/DropDownMenu.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { RiArrowDownSFill } from 'react-icons/ri'
22
import { Menu, Item, animation, useContextMenu } from 'react-contexify'
3-
import { useEffect, useState } from 'react'
43

54
const DropDownMenu = ({ data, tagId, label, setSelectedDropDownItem }) => {
65
const { show: showMenu } = useContextMenu()

src/lib/analytics.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ const trackEvent = ({ object, verb, attributes }: trackEventProps) => {
264264
});
265265

266266
// Remove http and www from links
267-
if (Object.keys(attributes).some((attr) => attr == Attributes.LINK)) {
267+
if (Object.keys(attributes).some((attr) => attr === Attributes.LINK)) {
268268
attributes[Attributes.LINK] = attributes[Attributes.LINK].replace(/(https*:\/\/[www.]*)/, '')
269269
}
270270
}

src/lib/localStorage.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import localforage from 'localforage';
2-
31
export const canUseLocalStorage = () => {
42
try {
53
window.localStorage.setItem('test', 'test');
@@ -11,7 +9,6 @@ export const canUseLocalStorage = () => {
119
}
1210
};
1311

14-
1512
export default class AppStorage {
1613
static getItem(key: string, defaultValue: string | null = null) {
1714
let value

src/stores/preferences.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { enhanceTags } from 'src/utils/DataEnhancement'
22
import create from 'zustand'
33
import { persist } from 'zustand/middleware'
4-
import { SelectedCard, SelectedTag, Theme, ListingMode, CardSettingsType } from '../types'
4+
import { SelectedCard, Theme, ListingMode, CardSettingsType } from '../types'
55
import { Tag } from 'src/features/remoteConfig'
66

77
export type UserPreferencesState = {

0 commit comments

Comments
 (0)