From c60d0e7392fc708e961614d6b756a045de74f458 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Tue, 30 Apr 2019 14:00:07 +0900 Subject: Rename .js/.jsx to .ts/.tsx --- src/settings/components/ui/AddButton.jsx | 12 ------ src/settings/components/ui/AddButton.tsx | 12 ++++++ src/settings/components/ui/DeleteButton.jsx | 12 ------ src/settings/components/ui/DeleteButton.tsx | 12 ++++++ src/settings/components/ui/Input.jsx | 60 ----------------------------- src/settings/components/ui/Input.tsx | 60 +++++++++++++++++++++++++++++ 6 files changed, 84 insertions(+), 84 deletions(-) delete mode 100644 src/settings/components/ui/AddButton.jsx create mode 100644 src/settings/components/ui/AddButton.tsx delete mode 100644 src/settings/components/ui/DeleteButton.jsx create mode 100644 src/settings/components/ui/DeleteButton.tsx delete mode 100644 src/settings/components/ui/Input.jsx create mode 100644 src/settings/components/ui/Input.tsx (limited to 'src/settings/components/ui') diff --git a/src/settings/components/ui/AddButton.jsx b/src/settings/components/ui/AddButton.jsx deleted file mode 100644 index 185a03b..0000000 --- a/src/settings/components/ui/AddButton.jsx +++ /dev/null @@ -1,12 +0,0 @@ -import './AddButton.scss'; -import React from 'react'; - -class AddButton extends React.Component { - render() { - return ; - } -} - -export default AddButton; diff --git a/src/settings/components/ui/AddButton.tsx b/src/settings/components/ui/AddButton.tsx new file mode 100644 index 0000000..185a03b --- /dev/null +++ b/src/settings/components/ui/AddButton.tsx @@ -0,0 +1,12 @@ +import './AddButton.scss'; +import React from 'react'; + +class AddButton extends React.Component { + render() { + return ; + } +} + +export default AddButton; diff --git a/src/settings/components/ui/DeleteButton.jsx b/src/settings/components/ui/DeleteButton.jsx deleted file mode 100644 index 75811cd..0000000 --- a/src/settings/components/ui/DeleteButton.jsx +++ /dev/null @@ -1,12 +0,0 @@ -import './DeleteButton.scss'; -import React from 'react'; - -class DeleteButton extends React.Component { - render() { - return ; - } -} - -export default DeleteButton; diff --git a/src/settings/components/ui/DeleteButton.tsx b/src/settings/components/ui/DeleteButton.tsx new file mode 100644 index 0000000..75811cd --- /dev/null +++ b/src/settings/components/ui/DeleteButton.tsx @@ -0,0 +1,12 @@ +import './DeleteButton.scss'; +import React from 'react'; + +class DeleteButton extends React.Component { + render() { + return ; + } +} + +export default DeleteButton; diff --git a/src/settings/components/ui/Input.jsx b/src/settings/components/ui/Input.jsx deleted file mode 100644 index 13a246b..0000000 --- a/src/settings/components/ui/Input.jsx +++ /dev/null @@ -1,60 +0,0 @@ -import React from 'react'; -import PropTypes from 'prop-types'; -import './Input.scss'; - -class Input extends React.Component { - - renderText(props) { - let inputClassName = props.error ? 'input-error' : ''; - return
- - -
; - } - - renderRadio(props) { - let inputClassName = props.error ? 'input-error' : ''; - return
- -
; - } - - renderTextArea(props) { - let inputClassName = props.error ? 'input-error' : ''; - return
- -