Skip to content

Commit

Permalink
chore: dépendance @nivo/bar version ^0.85.1 + fixbug (#164)
Browse files Browse the repository at this point in the history
Co-authored-by: Shamzic <shamery@free.fr>
  • Loading branch information
dependabot[bot] and Shamzic authored May 1, 2024
1 parent 659da07 commit f4a18cb
Show file tree
Hide file tree
Showing 8 changed files with 531 additions and 280 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 f4a18cb

Please sign in to comment.