Skip to content

Commit 07c17b0

Browse files
committed
Organize radio buttons and groups
1 parent 01089f9 commit 07c17b0

File tree

6 files changed

+7
-4
lines changed

6 files changed

+7
-4
lines changed

components/radio/index.jsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
RadioButton: require('./radio_button'),
3+
RadioGroup: require('./radio_group')
4+
};
File renamed without changes.
File renamed without changes.

spec/components/radio_group.jsx renamed to spec/components/radio.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React from 'react';
2-
import RadioGroup from '../../components/radio_group';
3-
import RadioButton from '../../components/radio_button';
2+
import { RadioGroup, RadioButton } from '../../components/radio';
43

54
export default React.createClass({
65
handleChange (event, instance) {

spec/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import List from './components/list';
1515
import Menu from './components/menu';
1616
import Pickers from './components/pickers';
1717
import Progress from './components/progress';
18-
import RadioGroup from './components/radio_group';
18+
import Radio from './components/radio';
1919
import Snackbar from './components/snackbar';
2020
import Slider from './components/slider';
2121
import Switch from './components/switch';
@@ -40,7 +40,7 @@ const App = () => {
4040
<Menu />
4141
<Pickers />
4242
<Progress />
43-
<RadioGroup />
43+
<Radio />
4444
<Slider />
4545
<Snackbar />
4646
<Switch />

0 commit comments

Comments
 (0)