Skip to content

Commit

Permalink
themes fix + review fix + remove raw-code
Browse files Browse the repository at this point in the history
  • Loading branch information
alitaheri committed Dec 13, 2015
1 parent f18bcfa commit 0efca26
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 62 deletions.
24 changes: 14 additions & 10 deletions docs/src/app/components/pages/customization/themes.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -476,12 +476,6 @@ const ThemesPage = React.createClass({
},

getComponentGroup() {
//Standard Actions
let standardActions = [
{text: 'Cancel'},
{text: 'Submit', onTouchTap: this._onDialogSubmit},
];

let styles = this.getStyles();

let menuItems = [
Expand Down Expand Up @@ -576,7 +570,20 @@ const ThemesPage = React.createClass({
<div style={styles.group}>
<div style={styles.containerCentered}>
<FlatButton label="View Dialog" onTouchTap={this.handleTouchTapDialog} />
<Dialog open={this.state.dialogOpen} title="Dialog With Standard Actions" actions={standardActions}
<Dialog
open={this.state.dialogOpen}
title="Dialog With Standard Actions"
actions={[
<FlatButton
label="Cancel"
keyboardFocus={true}
onTouchTap={this.handleRequestCloseDialog}
secondary={true} />,
<FlatButton
label="Submit"
onTouchTap={this.handleRequestCloseDialog}
primary={true} />,
]}
onRequestClose={this.handleRequestCloseDialog}>
The actions in this window are created from the json that&#39;s passed in.
</Dialog>
Expand Down Expand Up @@ -675,9 +682,6 @@ const ThemesPage = React.createClass({
});
},

_onDialogSubmit() {
console.log('Submitting');
},
});

export default ThemesPage;
46 changes: 0 additions & 46 deletions docs/src/app/components/raw-code/dialog-code.txt

This file was deleted.

12 changes: 6 additions & 6 deletions src/dialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ const DialogInline = React.createClass({
propTypes: {
actionFocus: React.PropTypes.string,
actions: React.PropTypes.node,
actionsContainerClassName: React.PropTypes.string,
actionsContainerStyle: React.PropTypes.object,
actionsContainerClassName: React.PropTypes.string,
actionsContainerStyle: React.PropTypes.object,
autoDetectWindowHeight: React.PropTypes.bool,
autoScrollBodyContent: React.PropTypes.bool,
bodyClassName: React.PropTypes.string,
Expand Down Expand Up @@ -473,12 +473,12 @@ const Dialog = React.createClass({
/**
* The `className` to add to the `Dialog` actions container's root element.
*/
actionsContainerClassName: React.PropTypes.string,
actionsContainerClassName: React.PropTypes.string,

/**
* Overrides the inline-styles of the `Dialog` actions container's root element.
*/
actionsContainerStyle: React.PropTypes.object,
actionsContainerStyle: React.PropTypes.object,

/**
* If set to true, the height of the `Dialog` will be auto detected. A max height
Expand Down Expand Up @@ -507,7 +507,7 @@ const Dialog = React.createClass({
children: React.PropTypes.node,

/**
* The `className` to add to the `Dialog` root element.
* The css class name of the root element.
*/
className: React.PropTypes.string,

Expand Down Expand Up @@ -553,7 +553,7 @@ const Dialog = React.createClass({
repositionOnUpdate: React.PropTypes.bool,

/**
* Override the inline-styles of the `Dialog`'s root element.
* Override the inline-styles of the root element.
*/
style: React.PropTypes.object,

Expand Down

0 comments on commit 0efca26

Please sign in to comment.