From 295453a5eea12b0295de755ef4bc9b5dd1cdbce0 Mon Sep 17 00:00:00 2001 From: srliao <906239+srliao@users.noreply.github.com> Date: Fri, 12 Apr 2024 21:30:24 +0000 Subject: [PATCH] update ads --- ui/packages/db/index.html | 10 +- ui/packages/db/public/ads.txt | 1 + ui/packages/db/src/Pages/Database/DBVIew.tsx | 106 ++++++------------- 3 files changed, 42 insertions(+), 75 deletions(-) create mode 100644 ui/packages/db/public/ads.txt diff --git a/ui/packages/db/index.html b/ui/packages/db/index.html index 23165c010..66beeb9b3 100644 --- a/ui/packages/db/index.html +++ b/ui/packages/db/index.html @@ -7,16 +7,20 @@ - + gcsim - simulation impact - + +
- \ No newline at end of file + diff --git a/ui/packages/db/public/ads.txt b/ui/packages/db/public/ads.txt new file mode 100644 index 000000000..949751e87 --- /dev/null +++ b/ui/packages/db/public/ads.txt @@ -0,0 +1 @@ +google.com, pub-9129749839418344, DIRECT, f08c47fec0942fa0 \ No newline at end of file diff --git a/ui/packages/db/src/Pages/Database/DBVIew.tsx b/ui/packages/db/src/Pages/Database/DBVIew.tsx index b3688fc45..1e5bb5d9f 100644 --- a/ui/packages/db/src/Pages/Database/DBVIew.tsx +++ b/ui/packages/db/src/Pages/Database/DBVIew.tsx @@ -1,11 +1,10 @@ -import { db } from "@gcsim/types"; -import eula from "images/eula.png"; -import { Helmet, HelmetProvider } from "react-helmet-async"; -import { useTranslation } from "react-i18next"; -import InfiniteScroll from "react-infinite-scroll-component"; -import { ActionBar } from "SharedComponents/ActionBar"; -import { Warning } from "SharedComponents/Warning"; -import { ListView } from "../../SharedComponents/ListView"; +import {db} from '@gcsim/types'; +import eula from 'images/eula.png'; +import {useTranslation} from 'react-i18next'; +import InfiniteScroll from 'react-infinite-scroll-component'; +import {ActionBar} from 'SharedComponents/ActionBar'; +import {Warning} from 'SharedComponents/Warning'; +import {ListView} from '../../SharedComponents/ListView'; type Props = { data: db.Entry[]; @@ -14,71 +13,34 @@ type Props = { }; export const DBView = (props: Props) => { - const { t } = useTranslation(); + const {t} = useTranslation(); return ( - - <> -
- - - - - -
-
- - - {props.data.length === 0 ? ( -
- -
- ) : ( - {t("sim.loading")}} - endMessage={ - <> -

- {t("db.seen_it_all")} -

-

{t("db.not_find")}

- - } - //TODO: enable pull down functionality for refreshing maybe?? - > - -
- )} +
+ + + {props.data.length === 0 ? ( +
+
- - - - - + ) : ( + {t('sim.loading')}} + endMessage={ + <> +

+ {t('db.seen_it_all')} +

+

{t('db.not_find')}

+ + } + //TODO: enable pull down functionality for refreshing maybe?? + > + +
+ )} +
); };