Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
react-dates
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Zandor Smith
react-dates
Commits
a851338b
Commit
a851338b
authored
8 years ago
by
Maja Wichrowska
Browse files
Options
Downloads
Patches
Plain Diff
Simplify the README
parent
c72fe6b7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.storybook/config.js
+35
-0
35 additions, 0 deletions
.storybook/config.js
README.md
+162
-458
162 additions, 458 deletions
README.md
with
197 additions
and
458 deletions
.storybook/config.js
+
35
−
0
View file @
a851338b
import
React
from
'
react
'
;
import
moment
from
'
moment
'
;
import
{
configure
,
addDecorator
,
setAddon
}
from
'
@kadira/storybook
'
;
import
infoAddon
from
'
@kadira/react-storybook-addon-info
'
;
...
...
@@ -8,6 +9,40 @@ addDecorator((story) => {
return
(
story
());
});
function
getLink
(
href
,
text
)
{
return
`<a href=
${
href
}
rel="noopener noreferrer" target="_blank">
${
text
}
</a>`
;
}
const
README
=
getLink
(
'
https://github.com/airbnb/react-dates/blob/master/README.md
'
,
'
README
'
);
const
wrapperSource
=
getLink
(
'
https://github.com/airbnb/react-dates/tree/master/examples
'
,
'
wrapper source
'
);
const
helperText
=
`All examples are built using a wrapper component that is not exported by
react-dates. Please see the
${
README
}
for more information about minimal setup or explore
the
${
wrapperSource
}
to see how to integrate react-dates into your own app.`
;
addDecorator
(
story
=>
(
<
div
>
<
div
style
=
{{
background
:
'
#fff
'
,
height
:
6
*
8
,
width
:
'
100%
'
,
position
:
'
fixed
'
,
top
:
0
,
left
:
0
,
padding
:
'
8px 40px 8px 8px
'
,
overflow
:
'
scroll
'
,
}}
>
<
span
dangerouslySetInnerHTML
=
{{
__html
:
helperText
}}
/
>
<
/div
>
<
div
style
=
{{
marginTop
:
7
*
8
}}
>
{
story
()}
<
/div
>
<
/div
>
));
function
loadStories
()
{
require
(
'
../stories/DateRangePicker
'
);
require
(
'
../stories/DateRangePicker_input
'
);
...
...
This diff is collapsed.
Click to expand it.
README.md
+
162
−
458
View file @
a851338b
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment