Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
mnholtz committed Jun 22, 2024
1 parent ecfa569 commit 118f8de
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/store/settings/settingsSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

import {
createAsyncThunk,
createSlice,
type PayloadAction,
} from "@reduxjs/toolkit";
import { createSlice, type PayloadAction } from "@reduxjs/toolkit";
import {
AUTH_METHODS,
type SettingsFlags,
Expand Down Expand Up @@ -134,15 +130,6 @@ const settingsSlice = createSlice({
* triggers updating themeStorage in the background script.
* @see activateTheme
*/
export const updateLocalPartnerTheme = createAsyncThunk<
void,
string,
{ state: SettingsState }
>("settings/updatePartnerTheme", async (partnerId, thunkAPI) => {
thunkAPI.dispatch(settingsSlice.actions.setPartnerId({ partnerId }));
await activateTheme();
});

export const useActivatePartnerTheme = (): ((
partnerId: string | null,
) => void) => {
Expand Down

0 comments on commit 118f8de

Please sign in to comment.