Skip to content

Commit

Permalink
Fix Import order
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvinkipruto committed Jul 17, 2024
1 parent e35d5f0 commit dc7c72d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { Source } from "@hurumap/next";
import { useMediaQuery } from "@mui/material";
import { ThemeProvider, StyledEngineProvider } from "@mui/material/styles";
import makeStyles from "@mui/styles/makeStyles";
Expand All @@ -13,6 +12,7 @@ import { calculateTooltipPosition, idify } from "./utils";

import ChartTooltip from "@/climatemappedafrica/components/HURUmap/ChartTooltip";
import IndicatorTitle from "@/climatemappedafrica/components/HURUmap/IndicatorTitle";

Check failure on line 14 in apps/climatemappedafrica/src/components/HURUmap/Chart/index.js

View workflow job for this annotation

GitHub Actions / Build and Test (20.14, ubuntu-latest)

There should be at least one empty line between import groups
import { Source } from "@hurumap/next";

Check failure on line 15 in apps/climatemappedafrica/src/components/HURUmap/Chart/index.js

View workflow job for this annotation

GitHub Actions / Build and Test (20.14, ubuntu-latest)

There should be at least one empty line between import groups

Check failure on line 15 in apps/climatemappedafrica/src/components/HURUmap/Chart/index.js

View workflow job for this annotation

GitHub Actions / Build and Test (20.14, ubuntu-latest)

`@hurumap/next` import should occur before import of `@mui/material`
import theme from "@/climatemappedafrica/theme";

const useStyles = makeStyles(() => ({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { Source } from "@hurumap/next";
import { Tooltip, Typography, LinearProgress } from "@mui/material";
import clsx from "clsx";
import PropTypes from "prop-types";
import React from "react";

import useStyles from "./useStyles";

import { Source } from "@hurumap/next";

Check failure on line 8 in apps/climatemappedafrica/src/components/HURUmap/KeyMetric/index.js

View workflow job for this annotation

GitHub Actions / Build and Test (20.14, ubuntu-latest)

`@hurumap/next` import should occur before import of `@mui/material`

function KeyMetric({
className,
formattedValue: formattedValueProp,
Expand Down
2 changes: 1 addition & 1 deletion apps/pesayetu/src/components/HURUmap/Chart/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { Source } from "@hurumap/next";
import { useMediaQuery } from "@mui/material";
import { ThemeProvider, StyledEngineProvider } from "@mui/material/styles";
import makeStyles from "@mui/styles/makeStyles";
Expand All @@ -13,6 +12,7 @@ import { calculateTooltipPosition, idify } from "./utils";

import ChartTooltip from "@/pesayetu/components/HURUmap/ChartTooltip";
import IndicatorTitle from "@/pesayetu/components/HURUmap/IndicatorTitle";
import { Source } from "@hurumap/next";
import theme from "@/pesayetu/theme";

const useStyles = makeStyles(() => ({
Expand Down
3 changes: 2 additions & 1 deletion apps/pesayetu/src/components/HURUmap/KeyMetric/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { Source } from "@hurumap/next";
import { Tooltip, Typography, LinearProgress } from "@mui/material";
import clsx from "clsx";
import PropTypes from "prop-types";
import React from "react";

import useStyles from "./useStyles";

import { Source } from "@hurumap/next";

function KeyMetric({
className,
formattedValue: formattedValueProp,
Expand Down

0 comments on commit dc7c72d

Please sign in to comment.