From f10c8f65734004416c158ec664e38ad0a21d683c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=8F=E9=83=A8?= Date: Mon, 25 Mar 2024 18:38:34 +0800 Subject: [PATCH] fix --- 222100414_222100415/src/page/App/App.tsx | 18 +----------------- 222100414_222100415/src/page/Home/Home.jsx | 8 +------- .../src/page/LearnMore/LearnMore.tsx | 7 +------ 3 files changed, 3 insertions(+), 30 deletions(-) diff --git a/222100414_222100415/src/page/App/App.tsx b/222100414_222100415/src/page/App/App.tsx index f96198c..df608e2 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 a4dfe4f..9375d13 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 fbdff5b..5bdea77 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 (