Skip to content

Commit a002e6f

Browse files
Refactor team card component and update imports
1 parent b503ba3 commit a002e6f

File tree

8 files changed

+112
-113
lines changed

8 files changed

+112
-113
lines changed

src/App.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
Footer,
88
Gallery,
99
HeroSection,
10-
TeamCard,
10+
TeamSection,
1111
} from "./containers";
1212
import "./App.css";
1313

@@ -49,7 +49,7 @@ const Courses = () => {
4949
const Team = () => {
5050
return (
5151
<div>
52-
<TeamCard />
52+
<TeamSection />
5353
</div>
5454
);
5555
};

src/components/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@ export { default as EventRegistrationForm } from "./event/EventRegistrationForm"
66
export { default as Feature } from "./feature/Feature";
77
export { default as Navbar } from "./navbar/Navbar";
88
export { default as ScrollTop } from "./scrolltop/ScrollTop";
9-
export { default as TeamSection } from "./team/TeamSection";
10-
9+
export { default as TeamCard } from "./teamcard/TeamCard";

src/components/team/TeamSection.jsx renamed to src/components/teamcard/TeamCard.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from "react";
2-
import TeamInnerSection from "./TeamInnerSection";
2+
import TeamCarouselCard from "./TeamCarouselCard";
33

4-
const TeamSection = ({
4+
const TeamCard = ({
55
image,
66
Tag,
77
Name,
@@ -12,7 +12,7 @@ const TeamSection = ({
1212
}) => {
1313
return (
1414
<div className="col-md-6 col-lg-4 mb-5">
15-
<TeamInnerSection
15+
<TeamCarouselCard
1616
image={image}
1717
Tag={Tag}
1818
Name={Name}
@@ -25,4 +25,4 @@ const TeamSection = ({
2525
);
2626
};
2727

28-
export default TeamSection;
28+
export default TeamCard;

src/components/team/TeamInnerSection.jsx renamed to src/components/teamcard/TeamCarouselCard.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from "react";
22
import FadeIn from "react-fade-in";
3-
import "./TeamSection.css";
3+
import "./TeamCarouselCard.css";
44

55
const TeamInnerSection = ({
66
image,

src/containers/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ export { default as Footer } from "./footer/Footer";
55
export { default as FooterHeart } from "./footerHeart/FooterHeart";
66
export { default as Gallery } from "./gallery/Gallery";
77
export { default as HeroSection } from "./heroSection/HeroSection";
8-
export { default as TeamCard } from "./teamcard/TeamCard";
8+
export { default as TeamSection } from "./team/TeamSection";
99
// export { default as Timeline } from './timeline/Timeline'

0 commit comments

Comments
 (0)