diff --git a/222100414_222100415/src/page/App/App.tsx b/222100414_222100415/src/page/App/App.tsx index f96198ccb0dc40e9cc3873736fc7b6557768ce42..df608e2cb016019ac70b63799869d47f5e5e208a 100644 --- a/222100414_222100415/src/page/App/App.tsx +++ b/222100414_222100415/src/page/App/App.tsx @@ -6,22 +6,6 @@ import './App.less'; import Header from '../../component/Header/Header'; import MedalTally from '../MedalTally/MedalTally'; -const content = { - title: 'WORLD AQUATICS - THE GLOBAL HOME OF AQUATIC SPORTS', - content: ['World Aquatics, formerly known as the Fédération Internationale de Natation (FINA), is the sole and exclusive world governing body for all Aquatics.  Since June 2021, under the presidency of Captain Husain Al Musallam, World Aquatics comprises 209 National Member Federations in the five continents.', - (World Aquatics - The global home of aquatic sports), - 'For the good of Aquatics and all Athletes, World Aquatics shall ensure that all Aquatics are governed, organised, developed and managed in accordance with the principles of democracy, right to equality, and no discrimination between any race, skin colour, gender, religion, sexual orientation, language, political or other opinion, national or social origin, property, birth, disability or any other reason, neutrality, transparency, accountability, fairplay, inclusion, sportsmanship and clean sport.', - (
- “Everyone in our community is proud of what FINA achieved in developing our sports. As we look to the future, World Aquatics will see all aquatics athletes united for the first time under one brand” -
-
World Aquatics President Captain Husain Al Musallam
-
——By
-
-
), - // eslint-disable-next-line react/no-unescaped-entities - (
Above all, Athletes are the central focus of World Aquatics' mission.
)] -}; - const App = () => { return (
@@ -29,7 +13,7 @@ const App = () => { - +
); }; diff --git a/222100414_222100415/src/page/Home/Home.jsx b/222100414_222100415/src/page/Home/Home.jsx index a4dfe4f7a0cf0b26bedec9af8d8340eedd38524c..9375d1310577398b368a6e0bf351e3253b362024 100644 --- a/222100414_222100415/src/page/Home/Home.jsx +++ b/222100414_222100415/src/page/Home/Home.jsx @@ -3,13 +3,7 @@ import './Home.css'; import {useTypePrint} from '../../common/hooks/index.ts'; import {theme} from '../../common/theme/theme.ts'; -const DisplayTexts = [ - 'World Aquatics 2024', - 'formerly known as the Fédération Internationale de Natation (FINA)', - 'is the sole and exclusive world governing body for all Aquatics', - 'Since June 2021, under the presidency of Captain Husain Al Musallam', - 'World Aquatics comprises 209 National Member Federations in the five continents' -]; +const DisplayTexts = ['World Aquatics 2024', 'formerly known as the Fédération Internationale de Natation (FINA)', 'is the sole and exclusive world governing body for all Aquatics', 'Since June 2021, under the presidency of Captain Husain Al Musallam', 'World Aquatics comprises 209 National Member Federations in the five continents']; const Home = () => { const displayText = useTypePrint(DisplayTexts, 30); diff --git a/222100414_222100415/src/page/LearnMore/LearnMore.tsx b/222100414_222100415/src/page/LearnMore/LearnMore.tsx index fbdff5b62a5ac2d2c8a7bafd1d500b5aeedb8c00..5bdea77f4159d7f122752b7fb708425a350908e8 100644 --- a/222100414_222100415/src/page/LearnMore/LearnMore.tsx +++ b/222100414_222100415/src/page/LearnMore/LearnMore.tsx @@ -1,14 +1,9 @@ -import React, {useEffect} from 'react'; import Panel from '../../component/Panel/Panel'; import Title from '../../component/Title/Title'; import {theme} from '../../common/theme/theme'; import {Carousel} from '../../component/mika-ui'; import './LearnMore.less'; -export interface LearnMoreProps { - title: string; - content: React.ReactNode[]; -} interface ListItem{ id: any; title: any; @@ -130,7 +125,7 @@ const list: ListItem[] = [ } ]; -const LearnMore = (props: LearnMoreProps) => { +const LearnMore = () => { return (