Skip to content

Commit

Permalink
Custom Settings (Remove connection tab)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhen0409 committed Jul 24, 2023
1 parent 6f97eab commit 150e5f3
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/containers/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import * as debuggerActions from '../actions/debugger';
import * as settingActions from '../actions/setting';
import ReduxDevTools from './ReduxDevTools';
import ReduxDevTools from './redux/DevTools';
import ReactInspector from './ReactInspector';
import FormInput from '../components/FormInput';
import Draggable from '../components/Draggable';
Expand Down
2 changes: 1 addition & 1 deletion app/containers/ReactInspector.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const styles = {
waiting: {
height: '100%',
display: 'flex',
webkitUserSelect: 'none',
WebkitUserSelect: 'none',
textAlign: 'center',
color: '#aaa',
justifyContent: 'center',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { useSelector, useDispatch } from 'react-redux';
import { Container, Notification } from '@redux-devtools/ui';
import { clearNotification } from '@redux-devtools/app/lib/esm/actions';
import Actions from '@redux-devtools/app/lib/esm/containers/Actions';
import Settings from '@redux-devtools/app/lib/esm/components/Settings';
import Header from './ReduxHeader';
import Settings from './Settings';
import Header from './Header';

const App = () => {
const section = useSelector(state => state.section);
Expand Down
File renamed without changes.
26 changes: 26 additions & 0 deletions app/containers/redux/Settings.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/* eslint-disable import/no-named-as-default */
import React, { Component } from 'react';
import Tabs from '@redux-devtools/ui/lib/esm/Tabs/Tabs';
import Themes from '@redux-devtools/app/lib/esm/components/Settings/Themes';

export default class Settings extends Component {
state = { selected: 'Themes' };

tabs = [
{ name: 'Themes', component: Themes },
];

handleSelect = (selected) => {
this.setState({ selected });
};

render() {
return (
<Tabs
tabs={this.tabs}
selected={this.state.selected}
onClick={this.handleSelect}
/>
);
}
}

0 comments on commit 150e5f3

Please sign in to comment.