From 440126beb0adb63fad0fc995ccc6004429378a7d Mon Sep 17 00:00:00 2001 From: Jimmy Jia Date: Fri, 17 Jul 2015 12:16:54 -0400 Subject: [PATCH] Remove irrelevant ModalStatic example Fixes #1001 --- docs/examples/ModalStatic.js | 27 --------------------------- docs/src/ComponentsPage.js | 12 +++++------- docs/src/Samples.js | 1 - 3 files changed, 5 insertions(+), 35 deletions(-) delete mode 100644 docs/examples/ModalStatic.js diff --git a/docs/examples/ModalStatic.js b/docs/examples/ModalStatic.js deleted file mode 100644 index 138c55f050..0000000000 --- a/docs/examples/ModalStatic.js +++ /dev/null @@ -1,27 +0,0 @@ -const modalInstance = ( -
- - - - Modal title - - - - One fine body... - - - - - - - -
-); - -React.render(modalInstance, mountNode); diff --git a/docs/src/ComponentsPage.js b/docs/src/ComponentsPage.js index 361e4ef310..e946ec2a03 100644 --- a/docs/src/ComponentsPage.js +++ b/docs/src/ComponentsPage.js @@ -260,12 +260,15 @@ const ComponentsPage = React.createClass({

Modals Modal

-

A static example

+

Basic example

+

- A rendered modal with header, body, and set of actions in the footer. The {''} Component comes with + A modal with header, body, and set of actions in the footer. Use {''} in combination with other components to + show or hide your Modal. The {''} Component comes with a few convenient "sub components": {''}, {''}, {''}, and {''}, which you can use to build the Modal content.

+

Additional Import Options

@@ -273,11 +276,6 @@ const ComponentsPage = React.createClass({ import them directly from the /lib directory like: {"require('react-bootstrap/lib/ModalHeader')"}.

- - -

Live demo

-

Use {''} in combination with other components to show or hide your Modal.

-

Contained Modal

You will need to add the following css to your project and ensure that your container has the modal-container class.

diff --git a/docs/src/Samples.js b/docs/src/Samples.js index fffdbba1dc..67b1580bd8 100644 --- a/docs/src/Samples.js +++ b/docs/src/Samples.js @@ -33,7 +33,6 @@ export default { PanelGroupUncontrolled: require('fs').readFileSync(__dirname + '/../examples/PanelGroupUncontrolled.js', 'utf8'), PanelGroupAccordion: require('fs').readFileSync(__dirname + '/../examples/PanelGroupAccordion.js', 'utf8'), CollapsibleParagraph: require('fs').readFileSync(__dirname + '/../examples/CollapsibleParagraph.js', 'utf8'), - ModalStatic: require('fs').readFileSync(__dirname + '/../examples/ModalStatic.js', 'utf8'), Modal: require('fs').readFileSync(__dirname + '/../examples/Modal.js', 'utf8'), ModalContained: require('fs').readFileSync(__dirname + '/../examples/ModalContained.js', 'utf8'), ModalDefaultSizing: require('fs').readFileSync(__dirname + '/../examples/ModalDefaultSizing.js', 'utf8'),