Skip to content

Commit

Permalink
move slick caraousel theme to global
Browse files Browse the repository at this point in the history
Signed-off-by: Shivam Gupta <[email protected]>
  • Loading branch information
ShivamCoder23 committed Jan 5, 2025
1 parent bf9d054 commit 9fdd79a
Show file tree
Hide file tree
Showing 15 changed files with 14 additions and 34 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 @@ -988,14 +987,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
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 9fdd79a

Please sign in to comment.