From efbde10517c8e5b59fc574e77851330a448f30be Mon Sep 17 00:00:00 2001 From: lifeparticle Date: Fri, 22 Sep 2023 19:21:44 +1000 Subject: [PATCH] refactor --- .../General/ListItems/News/News.tsx | 7 ++- ui/src/pages/About/index.tsx | 2 +- ui/src/pages/Feedback/index.tsx | 48 ++++++++++--------- ui/src/pages/Home/components/Contribution.tsx | 2 +- ui/src/pages/Home/components/Hero.tsx | 2 +- ui/src/pages/Home/components/Values.tsx | 48 ------------------- ui/src/pages/Home/index.tsx | 2 - ui/src/pages/Newsfeed/utils/constants.ts | 5 +- ui/src/pages/Newsfeed/utils/hooks.ts | 4 +- 9 files changed, 40 insertions(+), 80 deletions(-) delete mode 100644 ui/src/pages/Home/components/Values.tsx diff --git a/ui/src/components/General/ListItems/News/News.tsx b/ui/src/components/General/ListItems/News/News.tsx index 2ce4677a..abefd2ea 100644 --- a/ui/src/components/General/ListItems/News/News.tsx +++ b/ui/src/components/General/ListItems/News/News.tsx @@ -15,7 +15,12 @@ const News: React.FC> = ({ {image && ( - + )}
{title} diff --git a/ui/src/pages/About/index.tsx b/ui/src/pages/About/index.tsx index 245aad62..8fb914d6 100644 --- a/ui/src/pages/About/index.tsx +++ b/ui/src/pages/About/index.tsx @@ -9,7 +9,7 @@ import { import { Card, List, Table, Typography } from "antd"; import style from "./About.module.scss"; import about from "assets/about.jpg"; -import Footer from "../../components/Layouts/Footer"; +import Footer from "components/Layouts/Footer"; const About = () => { return ( diff --git a/ui/src/pages/Feedback/index.tsx b/ui/src/pages/Feedback/index.tsx index 363d04f5..33c73c66 100644 --- a/ui/src/pages/Feedback/index.tsx +++ b/ui/src/pages/Feedback/index.tsx @@ -1,34 +1,38 @@ import { useState } from "react"; import style from "./Feedback.module.scss"; import { Skeleton } from "antd"; +import Footer from "components/Layouts/Footer"; const AirtableEmbed = () => { const [loading, setLoading] = useState(true); return ( -
- {loading && ( -
- - - - - - - - - - -
- )} + <> +
+ {loading && ( +
+ + + + + + + + + + +
+ )} - -
+ +
+