Skip to content

Commit

Permalink
fix: string into example
Browse files Browse the repository at this point in the history
  • Loading branch information
roggervalf committed Feb 9, 2020
1 parent 7ba8b28 commit 356821b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 26 deletions.
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject",
"predeploy": "npm run build",
"predeploy": "yarn build",
"deploy": "gh-pages -d build"
}
}
49 changes: 24 additions & 25 deletions example/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export default class App extends Component {
className={effect === "float" ? "active" : ""}
onClick={this.changeEffect.bind(this, "float")}
>
Float<span className="mark">(default)</span>
Float<span className="mark">{'(default)'}</span>
</a>
<a
className={effect === "solid" ? "active" : ""}
Expand Down Expand Up @@ -172,7 +172,7 @@ export default class App extends Component {
style={{ transform: "translate3d(5px, 5px, 5px)" }}
>
<a data-tip data-for="happyFace">
d(`・∀・)b
{'d(`・∀・)b'}
</a>
<ReactTooltip id="happyFace" type="error">
<span>Show happy face</span>
Expand Down Expand Up @@ -209,12 +209,12 @@ export default class App extends Component {
<div className="example-jsx">
<div className="side">
<a data-tip data-for="global">
σ`∀´)σ
{'σ`∀´)σ'}
</a>
</div>
<div className="side">
<a data-tip data-for="global">
(〃∀〃)
{'(〃∀〃)'}
</a>
</div>
<ReactTooltip id="global" aria-haspopup="true" role="example">
Expand Down Expand Up @@ -263,7 +263,7 @@ export default class App extends Component {
data-tip="custom show"
data-event="click focus"
>
( •̀д•́)
{'( •̀д•́)'}
</a>
<ReactTooltip id="custom-event" globalEventOff="click" />
</div>
Expand All @@ -275,7 +275,7 @@ export default class App extends Component {
data-event="click"
data-event-off="dblclick"
>
( •̀д•́)
{'( •̀д•́)'}
</a>
<ReactTooltip id="custom-off-event" />
</div>
Expand Down Expand Up @@ -305,7 +305,7 @@ export default class App extends Component {
data-for="custom-class"
data-tip="hover on me will keep the tooltip"
>
(・ω´・ )
{'(・ω´・ )'}
</a>
<ReactTooltip
id="custom-class"
Expand All @@ -316,7 +316,7 @@ export default class App extends Component {
</div>
<div className="side">
<a data-for="custom-theme" data-tip="custom theme">
(・ω´・ )
{'(・ω´・ )'}
</a>
<ReactTooltip id="custom-theme" className="customeTheme" />
</div>
Expand Down Expand Up @@ -362,7 +362,7 @@ export default class App extends Component {
<div className="example-jsx">
<div className="side">
<a data-for="getContent" data-tip>
=( •̀д•́)
{'=( •̀д•́)'}
</a>
<ReactTooltip
id="getContent"
Expand All @@ -371,7 +371,7 @@ export default class App extends Component {
</div>
<div className="side">
<a data-for="overTime" data-tip>
=( •̀д•́)
{'=( •̀д•́)'}
</a>
<ReactTooltip
id="overTime"
Expand Down Expand Up @@ -411,12 +411,12 @@ export default class App extends Component {
<div className="example-jsx">
<div className="side">
<a data-for="enrich" data-tip="sooooo cute">
(❂‿❂)
{'(❂‿❂)'}
</a>
</div>
<div className="side">
<a data-for="enrich" data-tip="really high">
(❂‿❂)
{'(❂‿❂)'}
</a>
</div>
<ReactTooltip
Expand Down Expand Up @@ -588,42 +588,42 @@ export default class App extends Component {
<div className="example-jsx">
<div className="block">
<a data-for="soclose" data-tip="1">
1 (❂‿❂)
{'1 (❂‿❂)'}
</a>
</div>
<div className="block">
<a data-for="soclose" data-tip="2">
2 (❂‿❂)
{'2 (❂‿❂)'}
</a>
</div>
<div className="block">
<a data-for="soclose" data-tip="3">
3 (❂‿❂)
{'3 (❂‿❂)'}
</a>
</div>
<div className="block">
<a data-for="soclose" data-tip="4">
4 (❂‿❂)
{'4 (❂‿❂)'}
</a>
</div>
<div className="block">
<a data-for="soclose" data-tip="5">
5 (❂‿❂)
{'5 (❂‿❂)'}
</a>
</div>
<div className="block">
<a data-for="soclose" data-tip="6">
6 (❂‿❂)
{'6 (❂‿❂)'}
</a>
</div>
<div className="block">
<a data-for="soclose" data-tip="7">
7 (❂‿❂)
{'7 (❂‿❂)'}
</a>
</div>
<div className="block">
<a data-for="soclose" data-tip="8">
8 (❂‿❂)
{'8 (❂‿❂)'}
</a>
</div>

Expand Down Expand Up @@ -666,14 +666,13 @@ export default class App extends Component {
</pre>

<p>
When <em>clickable</em> property is set to <em>true</em>", tooltip
can respond to mouse (or touch) events."
When <em>clickable</em> property is set to <em>true</em>{', tooltip can respond to mouse (or touch) events.'}
</p>
<p className="sub-title" />
<div className="example-jsx">
<div className="block">
<a data-tip data-for="clickme" data-event="click">
(❂‿❂)
{'(❂‿❂)'}
</a>
</div>

Expand Down Expand Up @@ -715,7 +714,7 @@ export default class App extends Component {
<div className="example-jsx">
<div className="side" style={{ display: "flex", width: "100%" }}>
<a data-tip data-for="overridePosition">
( •̀д•́) override
{'( •̀д•́) override'}
</a>
<ReactTooltip
id="overridePosition"
Expand Down Expand Up @@ -744,7 +743,7 @@ export default class App extends Component {
<div>footer</div>
</ReactTooltip>
<a data-tip data-for="noOverridePosition">
( •̀д•́) noOverride
{'( •̀д•́) noOverride'}
</a>
<ReactTooltip id="noOverridePosition">
<div>header</div>
Expand Down

0 comments on commit 356821b

Please sign in to comment.