Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Moved CommonFormDropdown from dropdown.js to commonForm.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Suguru Hirahara committed Apr 4, 2017
1 parent 61db9b9 commit d8ed98d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
9 changes: 9 additions & 0 deletions app/renderer/components/commonForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,20 @@ const {StyleSheet, css} = require('aphrodite/no-important')
const globalStyles = require('./styles/global')
const commonStyles = require('./styles/commonStyles')

const {FormDropdown} = require('./dropdown')

class CommonForm extends ImmutableComponent {
render () {
return <div className={css(commonStyles.flyoutDialog, styles.CommonForm)} {...this.props} />
}
}

class CommonFormDropdown extends ImmutableComponent {
render () {
return <FormDropdown data-isCommonForm='true' {...this.props} />
}
}

class CommonFormClickable extends ImmutableComponent {
render () {
return <div className={css(styles.CommonFormClickable)} {...this.props} />
Expand Down Expand Up @@ -103,6 +111,7 @@ const styles = StyleSheet.create({

module.exports = {
CommonForm,
CommonFormDropdown,
CommonFormClickable,
CommonFormSection,
CommonFormTitle,
Expand Down
7 changes: 0 additions & 7 deletions app/renderer/components/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,6 @@ class FormDropdown extends ImmutableComponent {
}
}

class CommonFormDropdown extends ImmutableComponent {
render () {
return <FormDropdown data-isCommonForm='true' {...this.props} />
}
}

class SettingDropdown extends ImmutableComponent {
render () {
return <FormDropdown data-isSettings='true' {...this.props} />
Expand Down Expand Up @@ -77,6 +71,5 @@ const styles = StyleSheet.create({
module.exports = {
Dropdown,
FormDropdown,
CommonFormDropdown,
SettingDropdown
}
3 changes: 1 addition & 2 deletions app/renderer/components/importBrowserDataPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,14 @@ const globalStyles = require('./styles/global')

const {
CommonForm,
CommonFormDropdown,
CommonFormSection,
CommonFormTitle,
CommonFormSubSection,
CommonFormButtonWrapper,
CommonFormBottomWrapper
} = require('./commonForm')

const {CommonFormDropdown} = require('./dropdown')

class ImportBrowserDataPanel extends ImmutableComponent {
constructor () {
super()
Expand Down

0 comments on commit d8ed98d

Please sign in to comment.