Skip to content

Commit

Permalink
chore: dépendance @nivo/bar version ^0.85.1 + fixbug
Browse files Browse the repository at this point in the history
  • Loading branch information
Shamzic committed Apr 17, 2024
1 parent dd3d411 commit cebcd54
Show file tree
Hide file tree
Showing 8 changed files with 1,013 additions and 318 deletions.
7 changes: 6 additions & 1 deletion components/defaultFunnelChart.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import React from "react"
import { ResponsiveBar } from "@nivo/bar"
import dynamic from "next/dynamic"

const ResponsiveBar = dynamic(
() => import("@nivo/bar").then((m) => m.ResponsiveBar),
{ ssr: false },
)

const xAxisKey = "label"

Expand Down
7 changes: 6 additions & 1 deletion components/surveyDetails.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import { Component } from "react"
import { ResponsiveBar } from "@nivo/bar"
import dynamic from "next/dynamic"

const ResponsiveBar = dynamic(
() => import("@nivo/bar").then((m) => m.ResponsiveBar),
{ ssr: false },
)

import ViewSwitch from "../components/viewSwitch.js"

Expand Down
7 changes: 6 additions & 1 deletion components/surveyHistorical.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import { Component } from "react"
import { ResponsiveBar } from "@nivo/bar"
import dynamic from "next/dynamic"

const ResponsiveBar = dynamic(
() => import("@nivo/bar").then((m) => m.ResponsiveBar),
{ ssr: false },
)

import { Config } from "../services/config.js"

Expand Down
7 changes: 6 additions & 1 deletion components/surveyResults.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import { Component } from "react"
import { ResponsiveBar } from "@nivo/bar"
import dynamic from "next/dynamic"

const ResponsiveBar = dynamic(
() => import("@nivo/bar").then((m) => m.ResponsiveBar),
{ ssr: false },
)

import { Config } from "../services/config.js"

Expand Down
Loading

0 comments on commit cebcd54

Please sign in to comment.