Skip to content

Commit

Permalink
Convert examples to typescript (visgl#88)
Browse files Browse the repository at this point in the history
* convert examples to typescript

* convert examples to typescript
  • Loading branch information
birkskyum authored May 2, 2024
1 parent e32f993 commit dff45bb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ const config = {
resolve: {
modules: [resolve('node_modules'), resolve('../node_modules')],
alias: {
'examples': resolve('../examples'),
'@deck.gl-community/bing-maps': resolve('../modules/bing-maps/src'),
'@deck.gl-community/graph-layers': resolve('../modules/graph-layers/src'),
'@deck.gl-community/react': resolve('../modules/react/src'),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, {Component} from 'react';
import {GITHUB_TREE} from '../constants/defaults';
import App from 'examples/editable-layers/advanced/src/example';
import App from '../../../examples/editable-layers/advanced/src/example';

import {makeExample} from '../components';

Expand All @@ -17,7 +17,7 @@ class AdvancedDemo extends Component {
}

render() {
const {params, ...otherProps} = this.props;
const {...otherProps} = this.props;

return (
<App
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, {Component} from 'react';
import {GITHUB_TREE} from '../constants/defaults';
import {Example as App} from 'examples/editable-layers/editor/example';
import {Example as App} from '../../../examples/editable-layers/editor/example';

import {makeExample} from '../components';

Expand All @@ -17,7 +17,7 @@ class EditorDemo extends Component {
}

render() {
const {params, ...otherProps} = this.props;
const {...otherProps} = this.props;

return (
<App
Expand Down

0 comments on commit dff45bb

Please sign in to comment.