Skip to content

Commit b64a8d4

Browse files
authored
Merge pull request #918 from rust-lang/rtk-rewrite
2 parents 3abdfa1 + 163b715 commit b64a8d4

23 files changed

+518
-438
lines changed

ui/frontend/.eslintrc.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ module.exports = {
6565
'PopButton.tsx',
6666
'editor/AceEditor.tsx',
6767
'editor/SimpleEditor.tsx',
68+
'reducers/output/execute.ts',
69+
'reducers/output/format.ts',
70+
'reducers/output/gist.ts',
71+
'reducers/websocket.ts',
72+
'websocketActions.ts',
6873
'websocketMiddleware.ts',
6974
],
7075
extends: ['prettier'],

ui/frontend/.prettierignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,9 @@ node_modules
1414
!PopButton.tsx
1515
!editor/AceEditor.tsx
1616
!editor/SimpleEditor.tsx
17+
!reducers/output/execute.ts
18+
!reducers/output/format.ts
19+
!reducers/output/gist.ts
20+
!reducers/websocket.ts
21+
!websocketActions.ts
1722
!websocketMiddleware.ts

ui/frontend/Header.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import ToolsMenu from './ToolsMenu';
1515
import * as actions from './actions';
1616
import * as selectors from './selectors';
1717
import { useAppDispatch } from './configureStore';
18+
import { performGistSave } from './reducers/output/gist';
1819

1920
import styles from './Header.module.css';
2021

@@ -132,7 +133,7 @@ const AdvancedOptionsMenuButton: React.FC = () => {
132133

133134
const ShareButton: React.FC = () => {
134135
const dispatch = useAppDispatch();
135-
const gistSave = useCallback(() => dispatch(actions.performGistSave()), [dispatch]);
136+
const gistSave = useCallback(() => dispatch(performGistSave()), [dispatch]);
136137

137138
return (
138139
<SegmentedButton title="Create shareable links to this code" onClick={gistSave}>

ui/frontend/ToolsMenu.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import MenuAside from './MenuAside';
88
import * as selectors from './selectors';
99
import * as actions from './actions';
1010
import { useAppDispatch } from './configureStore';
11+
import { performFormat } from './reducers/output/format';
1112

1213
interface ToolsMenuProps {
1314
close: () => void;
@@ -33,7 +34,7 @@ const ToolsMenu: React.FC<ToolsMenuProps> = props => {
3334
props.close();
3435
}, [dispatch, props]);
3536
const format = useCallback(() => {
36-
dispatch(actions.performFormat());
37+
dispatch(performFormat());
3738
props.close();
3839
}, [dispatch, props]);
3940
const expandMacros = useCallback(() => {

0 commit comments

Comments
 (0)