aboutsummaryrefslogtreecommitdiff
path: root/src/settings/components/ui
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2019-04-29 09:13:59 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2019-04-29 09:13:59 +0900
commit55f15c9350cc531324e6182895f494eeb8174bc6 (patch)
treef7fc53993ba3c0b44717072599d1cb14a2faaceb /src/settings/components/ui
parent8773a4ec2891f1ec7bdaf5453eb522ab697606ef (diff)
Move to react
Diffstat (limited to 'src/settings/components/ui')
-rw-r--r--src/settings/components/ui/add-button.jsx4
-rw-r--r--src/settings/components/ui/delete-button.jsx4
-rw-r--r--src/settings/components/ui/input.jsx4
3 files changed, 6 insertions, 6 deletions
diff --git a/src/settings/components/ui/add-button.jsx b/src/settings/components/ui/add-button.jsx
index 79292d8..031d28b 100644
--- a/src/settings/components/ui/add-button.jsx
+++ b/src/settings/components/ui/add-button.jsx
@@ -1,7 +1,7 @@
import './add-button.scss';
-import { h, Component } from 'preact';
+import React from 'react';
-class AddButton extends Component {
+class AddButton extends React.Component {
render() {
return <input
className='ui-add-button' type='button' value='&#x271a;'
diff --git a/src/settings/components/ui/delete-button.jsx b/src/settings/components/ui/delete-button.jsx
index 8077a76..3dfe14a 100644
--- a/src/settings/components/ui/delete-button.jsx
+++ b/src/settings/components/ui/delete-button.jsx
@@ -1,7 +1,7 @@
import './delete-button.scss';
-import { h, Component } from 'preact';
+import React from 'react';
-class DeleteButton extends Component {
+class DeleteButton extends React.Component {
render() {
return <input
className='ui-delete-button' type='button' value='&#x2716;'
diff --git a/src/settings/components/ui/input.jsx b/src/settings/components/ui/input.jsx
index e99dbc7..2f42b62 100644
--- a/src/settings/components/ui/input.jsx
+++ b/src/settings/components/ui/input.jsx
@@ -1,7 +1,7 @@
-import { h, Component } from 'preact';
+import React from 'react';
import './input.scss';
-class Input extends Component {
+class Input extends React.Component {
renderText(props) {
let inputClassName = props.error ? 'input-error' : '';