Skip to content

Commit

Permalink
fix type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
blackforestboi committed Jun 10, 2024
1 parent 16d9d46 commit 6e41fe5
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 11 deletions.
1 change: 0 additions & 1 deletion src/background-script/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ interface Dependencies {
| 'customLists'
| 'personalCloud'
| 'readwise'
| 'betaFeatures'
| 'syncSettings'
| 'summarizeBG'
| 'auth'
Expand Down
6 changes: 0 additions & 6 deletions src/background-script/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ import {
DB_DATA_LOSS_CHECK_ALARM_NAME,
checkDataLoss,
} from './db-data-loss-check'
import { BetaFeaturesBackground } from 'src/beta-features/background'

export interface BackgroundModules {
analyticsBG: AnalyticsCoreInterface
Expand Down Expand Up @@ -148,7 +147,6 @@ export interface BackgroundModules {
contentConversations: ContentConversationsBackground
tabManagement: TabManagementBackground
readwise: ReadwiseBackground
betaFeatures: BetaFeaturesBackground
activityStreams: ActivityStreamsBackground
// userMessages: UserMessageService
personalCloud: PersonalCloudBackground
Expand Down Expand Up @@ -461,8 +459,6 @@ export function createBackgroundModules(options: {
),
})

const betaFeatures = null

const localExtSettingStore = new BrowserSettingsStore<
LocalExtensionSettings
>(options.browserAPIs.storage.local, {
Expand Down Expand Up @@ -597,7 +593,6 @@ export function createBackgroundModules(options: {
analyticsBG,
bgModules: {
readwise,
betaFeatures,
copyPaster,
customLists,
syncSettings,
Expand Down Expand Up @@ -633,7 +628,6 @@ export function createBackgroundModules(options: {
bookmarks,
tabManagement,
readwise,
betaFeatures,
syncSettings,
backupModule: new backup.BackupBackgroundModule({
storageManager,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ export const main: InPageUIInjectionsMain = async ({
} else if (component === 'img-action-buttons') {
await handleRenderImgActionButtons(
syncSettings,
syncSettingsBG,
annotationsFunctions,
upgradeModalProps.browserAPIs,
options.imageElements,
Expand Down
1 change: 1 addition & 0 deletions src/content-scripts/content_script/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export interface InPageUIInjectionsDependencies {
| 'openAI'
| 'searchInjection'
| 'dashboard'
| 'betaFeatures'
>
annotationsFunctions: any
}
Expand Down
3 changes: 0 additions & 3 deletions src/search-injection/img-action-buttons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import { TooltipBox } from '@worldbrain/memex-common/lib/common-ui/components/to

interface RootProps {
rootEl: HTMLElement
syncSettingsBG: RemoteSyncSettingsInterface
syncSettings: SyncSettingsStore<'betaFeatures'>
annotationsFunctions: any
browserAPIs: Browser
Expand Down Expand Up @@ -146,7 +145,6 @@ class Root extends React.Component<RootProps, RootState> {

export const handleRenderImgActionButtons = async (
syncSettings: SyncSettingsStore<'betaFeatures'>,
syncSettingsBG: RemoteSyncSettingsInterface,
annotationsFunctions: any,
browserAPIs: Browser,
imageElements: HTMLCollectionOf<HTMLImageElement>,
Expand Down Expand Up @@ -289,7 +287,6 @@ export const handleRenderImgActionButtons = async (
syncSettings={syncSettings}
annotationsFunctions={annotationsFunctions}
browserAPIs={browserAPIs}
syncSettingsBG={syncSettingsBG}
contentScriptsBG={contentScriptsBG}
imageUrl={imageUrl}
imageData={imageData}
Expand Down

0 comments on commit 6e41fe5

Please sign in to comment.