Skip to content

Commit f8b0170

Browse files
authored
chore(graph-layers): Add example to website (#158)
1 parent 4458bde commit f8b0170

File tree

20 files changed

+47
-53
lines changed

20 files changed

+47
-53
lines changed

examples/graph-layers/react-graph-gl/app.tsx renamed to examples/graph-layers/graph-viewer/app.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const DEFAULT_NODE_SIZE = 5;
1515

1616
const DEFAULT_DATASET = 'Random (20, 40)';
1717

18-
class App extends Component {
18+
export class App extends Component {
1919
state = {
2020
selectedDataset: DEFAULT_DATASET
2121
};

examples/graph-layers/react-graph-gl/package.json renamed to examples/graph-layers/graph-viewer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"start-local": "vite --config ../vite.config.local.mjs"
99
},
1010
"dependencies": {
11-
"@deck.gl-community/graph-layers": "^9.0.2",
11+
"@deck.gl-community/graph-layers": "9.0.2",
1212
"deck.gl": "^9.0.0"
1313
},
1414
"devDependencies": {

examples/graph-layers/react-graph-gl/react-graph-layers/use-loading.tsx renamed to examples/graph-layers/graph-viewer/react-graph-layers/use-loading.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import {useLayoutEffect, useReducer} from 'react';
66

77
const loadingReducer = (state, action) => {
8-
console.log('loadingReducer', state, action);
98
switch (action.type) {
109
case 'startLayout':
1110
return {loaded: false, rendered: false, isLoading: true};

0 commit comments

Comments
 (0)