actions: drop typed dispatch

This doesn't provide much benefit and is just one more rule to remember,
so we can do without it.
This commit is contained in:
David Lechner
2022-02-24 17:16:52 -06:00
parent e4b7a9aec7
commit cf8744a6cd
12 changed files with 11 additions and 23 deletions
+1 -1
View File
@@ -12,8 +12,8 @@ import tomorrowNightEightiesTheme from 'monaco-themes/themes/Tomorrow-Night-Eigh
import xcodeTheme from 'monaco-themes/themes/Xcode_default.json';
import React, { useRef } from 'react';
import MonacoEditor, { monaco } from 'react-monaco-editor';
import { useDispatch } from 'react-redux';
import { IDisposable } from 'xterm';
import { useDispatch } from '../actions';
import { fileStorageWriteFile } from '../fileStorage/actions';
import { compile } from '../mpy/actions';
import { useSelector } from '../reducers';
+1 -1
View File
@@ -2,7 +2,7 @@
// Copyright (c) 2020-2021 The Pybricks Authors
import React from 'react';
import { useDispatch } from '../actions';
import { useDispatch } from 'react-redux';
import * as notificationActions from '../notifications/actions';
import { useSelector } from '../reducers';
import OpenFileButton, { OpenFileButtonProps } from '../toolbar/OpenFileButton';
+1 -1
View File
@@ -2,7 +2,7 @@
// Copyright (c) 2020-2021 The Pybricks Authors
import React from 'react';
import { useDispatch } from '../actions';
import { useDispatch } from 'react-redux';
import * as editorActions from '../editor/actions';
import { useSelector } from '../reducers';
import ActionButton, { ActionButtonProps } from '../toolbar/ActionButton';