removed unused import/export

This commit is contained in:
TaylorS15
2023-02-19 15:42:56 -05:00
parent 5902ca0201
commit 112e7a2473
2 changed files with 2 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
import { useEffect, useState } from 'react';
import { useDispatch } from 'react-redux';
import { ActiveState, Doc } from '../models/misc';
import { setSelectedDocs, selectSelectedDocs } from './preferenceSlice';
import { setSelectedDocs } from './preferenceSlice';
import { getDocs } from '../api/docs';
export default function APIKeyModal({
@@ -109,7 +109,7 @@ export default function APIKeyModal({
className="ml-auto h-10 w-20 rounded-lg bg-violet-800 text-white transition-all hover:bg-violet-700"
>
Save
</button>{' '}
</button>
{isError && (
<p className="mr-auto text-sm text-red-500">
Please select source documentation.

View File

@@ -33,7 +33,5 @@ type RootState = ReturnType<typeof store.getState>;
export const selectApiKey = (state: RootState) => state.preference.apiKey;
export const selectApiKeyStatus = (state: RootState) =>
!!state.preference.apiKey;
export const selectSelectedDocs = (state: RootState) =>
state.preference.selectedDocs;
export const selectSelectedDocsStatus = (state: RootState) =>
!!state.preference.selectedDocs;