diff --git a/src/components/Options.tsx b/src/components/Options.tsx index 46c11e5..689f1ea 100644 --- a/src/components/Options.tsx +++ b/src/components/Options.tsx @@ -1,5 +1,3 @@ -import { Toast } from 'bootstrap'; -import classNames from 'classnames'; import React, { useEffect, useRef, useState } from 'react'; import config, { SuccessOrFailType } from '../config/config'; import apiKeyInvalid from '../utils/apiKey'; @@ -38,8 +36,6 @@ export default function Options(): JSX.Element { whitelist: '', }); - const liveToastRef = useRef(null); - const loggingStyleRef = useRef(null); const restoreSettings = async (): Promise => { @@ -131,9 +127,8 @@ export default function Options(): JSX.Element { trackSocialMedia, whitelist, }); - // eslint-disable-next-line - Toast.getOrCreateInstance(liveToastRef?.current ?? '')?.show(); await logUserIn(state.apiKey); + window.close(); }; const updateBlacklistState = (sites: string) => { @@ -363,30 +358,6 @@ export default function Options(): JSX.Element { -
- -