Skip to content

Commit 35bbbdf

Browse files
committed
Removed unused activities tab logic and Content component from Activities.js
1 parent e932035 commit 35bbbdf

File tree

1 file changed

+3
-45
lines changed

1 file changed

+3
-45
lines changed

src/pages/Activities.js

Lines changed: 3 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useMemo, useState, useRef } from "react";
1+
import React, { useRef } from "react";
22
import "../styles/pages/activities.scss";
33

44
import Header from "../components/Header";
@@ -8,22 +8,14 @@ import TextLineReveal from "../components/TextLineReveal";
88
import { getFromPublic } from "../shared/functions/public";
99
import useRevealOne from "../shared/hooks/useRevealOne";
1010

11-
import activities from "../shared/db/activities";
1211
import HorGallery from "../components/HorGallery";
1312
import gallery from "../shared/db/gallery";
1413
import thisyear from "../shared/db/thisyear";
15-
import { types } from "../shared/db/activities";
1614
import { useShow } from "../shared/contexts/EsShow";
1715
import ImageLoad from "../components/ImageLoad";
1816
import Tesla from "../shared/components/Tesla";
1917

20-
export default function Events() {
21-
// const [current, setCurrent] = useState("training");
22-
23-
// const currentActiv = useMemo(() => {
24-
// return activities.filter((activity) => activity.type === current);
25-
// }, [current]);
26-
18+
function Activities() {
2719
const { triggerShow } = useShow();
2820

2921
return (
@@ -84,42 +76,8 @@ export default function Events() {
8476
<div style={{ backgroundColor: "var(--dark-background)" }}>
8577
<Tesla />
8678
</div>
87-
88-
{/* <div className="navbar" style={{backgroundImage: `url('${getFromPublic("/images/backgrounds/industry4.jpg")}')`}}>
89-
{
90-
types.map((type,index)=>(
91-
<button
92-
className={(type===current)?"current":""}
93-
key={index}
94-
onClick={()=>{setCurrent(type)}}
95-
> {type} </button>
96-
))
97-
}
98-
</div> */}
99-
{/* <div className="activities-container">
100-
<div className="container" key={current}>
101-
{currentActiv.map((activity,index)=>(
102-
<div className="activity" key={index}>
103-
<ImageLoad src={activity.image} width="370px" height='300px' className="activity-image" alt="activity" />
104-
<Content name={activity.title} description={activity.description} />
105-
</div>
106-
))}
107-
</div>
108-
</div> */}
10979
</div>
11080
);
11181
}
11282

113-
function Content({ name, description }) {
114-
const contentRef = useRef(null);
115-
useRevealOne(contentRef);
116-
117-
return (
118-
<div className="content" ref={contentRef}>
119-
<TextLineReveal>
120-
<h2> {name} </h2>
121-
</TextLineReveal>
122-
<p> {description} </p>
123-
</div>
124-
);
125-
}
83+
export default Activities;

0 commit comments

Comments
 (0)