Skip to content

Revert "Added example of expand lazy loading to storybook advanced section" #300

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 5, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
341 changes: 0 additions & 341 deletions examples/storybooks/__snapshots__/storyshots.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -724,347 +724,6 @@ exports[`Storyshots Advanced Drag out to remove 1`] = `
</div>
`;

exports[`Storyshots Advanced Expand with lazy loading of child nodes 1`] = `
<div>
<div
style={
Object {
"height": 300,
}
}
>
<div
className="rst__tree"
style={
Object {
"height": "100%",
}
}
>
<div>
<div
aria-label="grid"
aria-readonly={true}
className="ReactVirtualized__Grid ReactVirtualized__List rst__virtualScrollOverride"
id={undefined}
onScroll={[Function]}
role="grid"
style={
Object {
"WebkitOverflowScrolling": "touch",
"boxSizing": "border-box",
"direction": "ltr",
"height": 99999,
"overflowX": "hidden",
"overflowY": "hidden",
"position": "relative",
"width": 200,
"willChange": "transform",
}
}
tabIndex={0}
>
<div
className="ReactVirtualized__Grid__innerScrollContainer"
role="rowgroup"
style={
Object {
"height": 186,
"maxHeight": 186,
"maxWidth": 200,
"overflow": "hidden",
"pointerEvents": "",
"position": "relative",
"width": "auto",
}
}
>
<div
className="rst__node"
style={
Object {
"height": 62,
"left": 0,
"position": "absolute",
"top": 0,
"width": "100%",
}
}
>
<div
className="rst__lineBlock rst__lineHalfHorizontalRight rst__lineHalfVerticalBottom"
style={
Object {
"width": 44,
}
}
/>
<div
className="rst__nodeContent"
style={
Object {
"left": 44,
}
}
>
<div
style={
Object {
"height": "100%",
}
}
>
<div>
<button
aria-label="Collapse"
className="rst__collapseButton"
onClick={[Function]}
style={
Object {
"left": -22,
}
}
type="button"
/>
<div
className="rst__lineChildren"
style={
Object {
"width": 44,
}
}
/>
</div>
<div
className="rst__rowWrapper"
>
<div
className="rst__row"
style={
Object {
"opacity": 1,
}
}
>
<div
className="rst__moveHandle"
/>
<div
className="rst__rowContents"
>
<div
className="rst__rowLabel"
>
<span
className="rst__rowTitle"
>
Chicken
</span>
</div>
<div
className="rst__rowToolbar"
/>
</div>
</div>
</div>
</div>
</div>
</div>
<div
className="rst__node"
style={
Object {
"height": 62,
"left": 0,
"position": "absolute",
"top": 62,
"width": "100%",
}
}
>
<div
className="rst__lineBlock rst__lineFullVertical"
style={
Object {
"width": 44,
}
}
/>
<div
className="rst__lineBlock rst__lineHalfVerticalTop rst__lineHalfHorizontalRight"
style={
Object {
"width": 44,
}
}
/>
<div
className="rst__nodeContent"
style={
Object {
"left": 88,
}
}
>
<div
style={
Object {
"height": "100%",
}
}
>
<div
className="rst__rowWrapper"
>
<div
className="rst__row"
style={
Object {
"opacity": 1,
}
}
>
<div
className="rst__moveHandle"
/>
<div
className="rst__rowContents"
>
<div
className="rst__rowLabel"
>
<span
className="rst__rowTitle"
>
Egg
</span>
</div>
<div
className="rst__rowToolbar"
/>
</div>
</div>
</div>
</div>
</div>
</div>
<div
className="rst__node"
style={
Object {
"height": 62,
"left": 0,
"position": "absolute",
"top": 124,
"width": "100%",
}
}
>
<div
className="rst__lineBlock rst__lineHalfVerticalTop rst__lineHalfHorizontalRight"
style={
Object {
"width": 44,
}
}
/>
<div
className="rst__nodeContent"
style={
Object {
"left": 44,
}
}
>
<div
style={
Object {
"height": "100%",
}
}
>
<div>
<button
aria-label="Expand"
className="rst__expandButton"
onClick={[Function]}
style={
Object {
"left": -22,
}
}
type="button"
/>
</div>
<div
className="rst__rowWrapper"
>
<div
className="rst__row"
style={
Object {
"opacity": 1,
}
}
>
<div
className="rst__moveHandle"
/>
<div
className="rst__rowContents"
>
<div
className="rst__rowLabel"
>
<span
className="rst__rowTitle"
>
Spaceship
</span>
</div>
<div
className="rst__rowToolbar"
/>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br />
<form
action="https://codesandbox.io/api/v1/sandboxes/define"
id="codesandbox-form"
method="POST"
>
<input
id="codesandbox-parameters"
name="parameters"
type="hidden"
/>
</form>
<button
className="sandboxButton"
onClick={[Function]}
>
PLAY WITH THIS CODE →
</button>
<a
className="sourceLink"
href="https://github.com/frontend-collective/react-sortable-tree/blob/master/examples/storybooks/expand-lazy-loading.js"
rel="noopener noreferrer"
target="_top"
>
VIEW SOURCE →
</a>
</div>
`;

exports[`Storyshots Advanced Playing with generateNodeProps 1`] = `
<div>
<div>
Expand Down
40 changes: 0 additions & 40 deletions examples/storybooks/expand-lazy-loading.js

This file was deleted.

Loading