Skip to content

Commit

Permalink
Fine tune
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpai committed Jan 3, 2019
1 parent afe6dd8 commit a1e8dc8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/renderer/component/rule/userscript/Settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@ import PropTypes from 'prop-types';
import { Form } from 'semantic-ui-react';

function UserscriptSettingsSection({rule, onNameChange}) {
const {id, data} = rule;
const {data} = rule;
return (
<div>
<div style={{
padding: 10
}}>
<h3>Userscript {id}</h3>
<Form>
<Form.Input.Light
fluid
Expand Down
4 changes: 3 additions & 1 deletion src/renderer/container/SessionPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Tab, Button } from 'semantic-ui-react';
import Icon from '@mdi/react';
import { mdiDelete } from '@mdi/js';

import SettingsSection from '../component/session/Settings';
// import SettingsSection from '../component/session/Settings';
import UrlSection from '../component/session/Url';
import ConsoleSection from '../component/session/Console';

Expand Down Expand Up @@ -56,11 +56,13 @@ function sections({id, session, console, action}) {
label: 'URL',
render: () => <UrlSection onUrlChange={onUrlChange} {...{session}} />
},
/*
{
name: 'settings',
label: 'Settings',
render: () => <SettingsSection {...{session}} />
},
*/
{
name: 'console',
label: 'Console',
Expand Down

0 comments on commit a1e8dc8

Please sign in to comment.