rename open and save as buttons

This commit is contained in:
David Lechner
2020-05-27 20:57:22 -05:00
committed by David Lechner
parent 9d789c13e1
commit 99fd62100d
5 changed files with 15 additions and 15 deletions
@@ -34,7 +34,7 @@ const mergeProps = (
ownProps: OwnProps,
): OpenFileButtonProps => ({
fileExtension: '.py',
tooltip: 'Load file',
tooltip: 'Open file',
icon: openIcon,
...ownProps,
...stateProps,
@@ -18,7 +18,7 @@ const mapStateToProps = (state: RootState): StateProps => ({
const mapDispatchToProps = (dispatch: Dispatch): DispatchProps => ({
onAction: (): void => {
dispatch(editor.save());
dispatch(editor.saveAs());
},
});
@@ -27,7 +27,7 @@ const mergeProps = (
dispatchProps: DispatchProps,
ownProps: OwnProps,
): ActionButtonProps => ({
tooltip: 'Save file',
tooltip: 'Download file',
icon: downloadIcon,
...ownProps,
...stateProps,
+4 -4
View File
@@ -6,10 +6,10 @@ import ButtonGroup from 'react-bootstrap/ButtonGroup';
import ButtonToolbar from 'react-bootstrap/ButtonToolbar';
import BluetoothButton from './BluetoothButton';
import FlashButton from './FlashButton';
import LoadButton from './LoadButton';
import OpenButton from './OpenButton';
import ReplButton from './ReplButton';
import RunButton from './RunButton';
import SaveButton from './SaveButton';
import SaveAsButton from './SaveAsButton';
import StopButton from './StopButton';
class Toolbar extends React.Component {
@@ -17,8 +17,8 @@ class Toolbar extends React.Component {
return (
<ButtonToolbar className="m-2">
<ButtonGroup className="mr-2" size="lg">
<LoadButton id="load" />
<SaveButton id="save" />
<OpenButton id="open" />
<SaveAsButton id="saveAs" />
</ButtonGroup>
<ButtonGroup className="mr-2" size="lg">
<BluetoothButton id="bluetooth" />