Skip to content

Commit

Permalink
fix: update all file,because linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
syafiqparadisam committed May 5, 2024
1 parent 2875f8a commit cac518b
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 25 deletions.
1 change: 1 addition & 0 deletions project/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ module.exports = {
settings: { react: { version: '18.2' } },
plugins: ['react-refresh'],
rules: {
'react/prop-types': 'off',
'react-refresh/only-export-components': 'warn',
},
}
16 changes: 1 addition & 15 deletions project/src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import Home from "./pages/Home";

import { Route, Routes, BrowserRouter } from "react-router-dom";
import NavigationBar from "./utils/NavigationBar";
import Layout from "./utils/Layout";
import { useEffect } from "react";
import Aos from "aos";
Expand Down Expand Up @@ -40,17 +39,4 @@ const App = () => {
</>
);
};
export default App;

// <ChakraProvider>
// <NavigationBar />
// <CardContext.Provider value={card}>
// <Routes>
// <Route path="/portofolio/" element={<Home />} />
// <Route path="/portofolio/client" element={<Client />} />
// <Route path="/portofolio/portofolio" element={<Portofolio />} />
// <Route path="/portofolio/service" element={<Service />} />
// </Routes>
// </CardContext.Provider>
// <Footer />
// </ChakraProvider>
export default App;
4 changes: 4 additions & 0 deletions project/src/components/Achievement/AchievementImage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,8 @@ const AchievementImage = ({ src, title }) => {
);
};

AchievementImage.propTypes = {

}

export default AchievementImage;
3 changes: 0 additions & 3 deletions project/src/components/Home/AboutSection.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import { TbClockBolt } from "react-icons/tb";
import { BsArrowDown, BsListCheck } from "react-icons/bs";
import { RiTeamFill } from "react-icons/ri";
import "aos/dist/aos.css";
import LayoutImageAndText from "../../utils/LayoutImageAndText";
import schoolIlustration from "../../assets/school.png"
Expand Down
1 change: 0 additions & 1 deletion project/src/components/Home/BrandingSosmed.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react'

const BrandingSosmed = ({link, icon, animate}) => {
return (
Expand Down
2 changes: 1 addition & 1 deletion project/src/components/Testimonials/CardTestimonial.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const CardTestimonial = ({ user, imageUrl, inisial,alt,bgColor,ulasan }) => {
const CardTestimonial = ({ user, inisial,bgColor,ulasan }) => {
return (
<div data-aos="zoom-in" className="tablet:w-96 w-full tablet:mx-0 mx-5 flex flex-col items-start shadow-xl rounded-lg pb-10 p-2 hover:bg-gray-300">
<div className="flex w-full text-left pb-3 gap-2 items-center justify-start">
Expand Down
4 changes: 1 addition & 3 deletions project/src/utils/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ import {
BsInstagram,
BsLinkedin,
BsTiktok,
BsYoutube,
} from "react-icons/bs";
import { Link, NavLink } from "react-router-dom";
import { Link } from "react-router-dom";
import { BiCopyright } from "react-icons/bi";
import { TbClockBolt } from 'react-icons/tb';

const Footer = () => {
const goto = () => {
Expand Down
1 change: 0 additions & 1 deletion project/src/utils/LayoutImageAndText.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { useEffect, useState } from "react";

const LayoutImageAndText = ({
image = "https://placeholder.com/1600x900",
Expand Down
3 changes: 2 additions & 1 deletion project/src/utils/NavigationBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ const NavigationBar = () => {
if (window.innerWidth >= 700) {
setHamburgerMenu(false);
}
});
}, [hamburgerMenu]);

return (
<nav
className={`w-full flex items-center flex-row shadow-4xl minilaptop:sticky relative`}
Expand Down

0 comments on commit cac518b

Please sign in to comment.