diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000000..8efd9f03a1 --- /dev/null +++ b/.prettierignore @@ -0,0 +1 @@ +src/demo/example-data diff --git a/examples/example_subsurface_map.py b/examples/example_subsurface_map.py index e4ea39b2ca..4528780d68 100644 --- a/examples/example_subsurface_map.py +++ b/examples/example_subsurface_map.py @@ -3,7 +3,7 @@ import dash_html_components as html import webviz_subsurface_components -with open('../src/demo/data.json') as json_file: +with open('../src/demo/example-data/subsurface-map.json') as json_file: data = json.load(json_file) app = dash.Dash(__name__) diff --git a/src/demo/SubsurfaceMapDemo.js b/src/demo/SubsurfaceMapDemo.js index 5c26aedb34..e6d5451296 100644 --- a/src/demo/SubsurfaceMapDemo.js +++ b/src/demo/SubsurfaceMapDemo.js @@ -3,7 +3,7 @@ import React, { Component } from "react"; import Map from "../lib/components/Map"; -const data = require("./data.json"); +const data = require("./example-data/subsurface-map.json"); class SubsurfaceMapDemo extends Component { render() { diff --git a/src/demo/data.json b/src/demo/example-data/subsurface-map.json similarity index 100% rename from src/demo/data.json rename to src/demo/example-data/subsurface-map.json