-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ci): disable graph3d for netlify builds (#1329)
- Loading branch information
1 parent
73c1050
commit 5ed06e8
Showing
4 changed files
with
47 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import React from 'react'; | ||
|
||
console.log(React.version); | ||
|
||
export function GraphMock() { | ||
return ( | ||
<div | ||
style={{ | ||
position: 'absolute', | ||
zIndex: 10, | ||
color: 'white', | ||
top: '50%', | ||
}} | ||
> | ||
graph is disabled for netlify builds | ||
</div> | ||
); | ||
} | ||
|
||
const Graph = GraphMock; | ||
|
||
// eslint-disable-next-line import/no-unused-modules | ||
export default Graph; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import React from 'react'; | ||
import { GraphMock } from './Graph'; | ||
|
||
console.log(React.version); | ||
|
||
// eslint-disable-next-line import/no-unused-modules, import/prefer-default-export | ||
export function ForceGraph3D() { | ||
return <GraphMock />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters