Skip to content

Commit

Permalink
Merge pull request #6164 from ShivamCoder23/css/conflict
Browse files Browse the repository at this point in the history
move slick carousel theme to global
  • Loading branch information
sudhanshutech authored Jan 9, 2025
2 parents 39e245b + e5a2549 commit 9aeb1ee
Show file tree
Hide file tree
Showing 17 changed files with 22 additions and 41 deletions.
2 changes: 2 additions & 0 deletions gatsby-browser.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import "./fonts.css";
import "slick-carousel/slick/slick.css";
import "slick-carousel/slick/slick-theme.css";

document.addEventListener("DOMContentLoaded", () => {
/** init gtm after 3500 seconds - this could be adjusted */
Expand Down
1 change: 0 additions & 1 deletion gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ module.exports = {
},
trailingSlash: "never",
plugins: [
"@mediacurrent/gatsby-plugin-silence-css-order-warning",
{
resolve: "gatsby-plugin-webpack-bundle-analyser-v2",
options: {
Expand Down
9 changes: 0 additions & 9 deletions gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const path = require("path");
const slugify = require("./src/utils/slugify");
const { paginate } = require("gatsby-awesome-pagination");
const { createFilePath } = require("gatsby-source-filesystem");
const FilterWarningsPlugin = require("webpack-filter-warnings-plugin");
const config = require("./gatsby-config");
const {
componentsData,
Expand Down Expand Up @@ -993,14 +992,6 @@ exports.onCreateWebpackConfig = ({ actions, stage, getConfig }) => {
},
},
});
actions.setWebpackConfig({
plugins: [
new FilterWarningsPlugin({
exclude:
/mini-css-extract-plugin[^]*Conflicting order. Following module has been added:/,
}),
],
});

if (stage === "build-javascript") {
const config = getConfig();
Expand Down
13 changes: 7 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
"react-scroll": "^1.9.0",
"react-select": "^5.7.4",
"react-share": "^4.4.1",
"react-slick": "^0.29.0",
"react-slick": "^0.30.3",
"react-table": "^7.8.0",
"react-tabs": "^6.0.2",
"react-tooltip": "^5.19.0",
Expand Down
3 changes: 1 addition & 2 deletions src/components/Related-Posts/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import "slick-carousel/slick/slick.css";
import "slick-carousel/slick/slick-theme.css";

import React from "react";
import { Link } from "gatsby";
import { IoIosArrowRoundForward } from "@react-icons/all-files/io/IoIosArrowRoundForward";
Expand Down
3 changes: 1 addition & 2 deletions src/components/Related-Resources/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import "slick-carousel/slick/slick.css";
import "slick-carousel/slick/slick-theme.css";

import React from "react";
import { Link } from "gatsby";
import { IoIosArrowRoundForward } from "@react-icons/all-files/io/IoIosArrowRoundForward";
Expand Down
3 changes: 1 addition & 2 deletions src/sections/Community/slider.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import "slick-carousel/slick/slick.css";
import "slick-carousel/slick/slick-theme.css";

import React from "react";
import Slider from "react-slick";
import styled from "styled-components";
Expand Down
3 changes: 1 addition & 2 deletions src/sections/Home/Partners-home/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import "slick-carousel/slick/slick.css";
import "slick-carousel/slick/slick-theme.css";

import React from "react";
import { Container, Row } from "../../../reusecore/Layout";
import SectionTitle from "../../../reusecore/SectionTitle";
Expand Down
3 changes: 1 addition & 2 deletions src/sections/Home/So-Special-Section/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import "slick-carousel/slick/slick.css";
import "slick-carousel/slick/slick-theme.css";

import React from "react";
import Slider from "react-slick";
import SoSpecialWrapper from "./so-special-style";
Expand Down
3 changes: 1 addition & 2 deletions src/sections/Learn/Books-grid/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import "slick-carousel/slick/slick.css";
import "slick-carousel/slick/slick-theme.css";

import React from "react";
import { graphql, useStaticQuery } from "gatsby";
import PageHeader from "../../../reusecore/PageHeader";
Expand Down
3 changes: 1 addition & 2 deletions src/sections/Learn/LearnPage-Sections/workshops.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import "slick-carousel/slick/slick.css";
import "slick-carousel/slick/slick-theme.css";

import React from "react";
import { graphql, useStaticQuery, Link } from "gatsby";
import { Row, Col } from "../../../reusecore/Layout";
Expand Down
3 changes: 1 addition & 2 deletions src/sections/Meshery/Features-section/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import "slick-carousel/slick/slick.css";
import "slick-carousel/slick/slick-theme.css";

import React from "react";
import { Row, Col } from "../../../reusecore/Layout";
import Button from "../../../reusecore/Button";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import "slick-carousel/slick/slick.css";
import "slick-carousel/slick/slick-theme.css";

import styled from "styled-components";
import Slider from "react-slick";

Expand Down
3 changes: 1 addition & 2 deletions src/sections/Meshery/meshery-operator/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@

import "slick-carousel/slick/slick.css";
import "slick-carousel/slick/slick-theme.css";import React from "react";
import React from "react";
import { StaticImage } from "gatsby-plugin-image";


Expand Down
3 changes: 1 addition & 2 deletions src/sections/Pricing/review-slider.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import "slick-carousel/slick/slick.css";
import "slick-carousel/slick/slick-theme.css";

import React from "react";
import styled from "styled-components";
import Customers from "../../reusecore/Blockquote/Blockquote-image";
Expand Down
3 changes: 1 addition & 2 deletions src/sections/Projects/Image-Hub/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import "slick-carousel/slick/slick.css";
import "slick-carousel/slick/slick-theme.css";

import React from "react";


Expand Down

0 comments on commit 9aeb1ee

Please sign in to comment.