diff --git a/components/stats/Chart.js b/components/stats/Chart.js index a66f7524..837375a7 100644 --- a/components/stats/Chart.js +++ b/components/stats/Chart.js @@ -1,5 +1,6 @@ import * as React from "react"; -import CreateChart from "./CreateChart"; + +import CreateChart from "~/components/stats/CreateChart"; class Chart extends React.Component { state = { diff --git a/components/stats/ChartParent.js b/components/stats/ChartParent.js index e8ae8b2f..afdaaa26 100644 --- a/components/stats/ChartParent.js +++ b/components/stats/ChartParent.js @@ -1,6 +1,7 @@ -import React, { Component } from "react"; -import HardChart from "./HardChart"; -import Chart from "./Chart"; +import * as React from "react"; + +import HardChart from "~/components/stats/HardChart"; +import Chart from "~/components/stats/Chart"; const MOCKDATA = [ { date: "December 17, 1995 03:24:00", category: "1", value: 100 }, diff --git a/components/stats/HardChart.js b/components/stats/HardChart.js index 1e53269a..4d889ea9 100644 --- a/components/stats/HardChart.js +++ b/components/stats/HardChart.js @@ -1,4 +1,4 @@ -import React from "react"; +import * as React from "react"; const STYLES_CONTAINER = { width: "100%", diff --git a/pages/_/stats.js b/pages/_/stats.js index dffeec48..28ceb84a 100644 --- a/pages/_/stats.js +++ b/pages/_/stats.js @@ -1,15 +1,13 @@ import * as React from "react"; import * as Strings from "~/common/strings"; import * as Constants from "~/common/constants"; -import * as SVG from "~/components/system/svg"; -import * as System from "~/components/system"; -import * as SchemaTable from "~/common/schema-table"; -import Section from "~/components/core/Section"; -import ScenePage from "~/components/core/ScenePage"; -import { css } from "@emotion/react"; +import * as System from "~/components/system"; +import Section from "~/components/core/Section"; import ChartParent from "~/components/stats/ChartParent"; +import { css } from "@emotion/react"; + const STYLES_ROW = css` display: flex; align-items: flex-start; @@ -309,12 +307,8 @@ const EXAMPLE_MINERS = { export default class StatsPage extends React.Component { render() { - const title = `Stats Page`; - const description = "This is to experiment with analytics."; - const url = "https://slate.host/analytics"; - return ( - +
Stats
- +
); } }