CI updates #1

This commit is contained in:
Darren Clarke 2023-06-20 07:49:52 +00:00 committed by GitHub
parent 59ae833099
commit 5a343c7eb9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
27 changed files with 707 additions and 652 deletions

View file

@ -7,12 +7,14 @@ import { getTrends } from "lib/opensearch";
import { PageHeader } from "components/PageHeader";
import { VisualizationCard } from "components/VisualizationCard";
import { useAppContext } from "components/AppProvider";
import { getEmbedded } from "lib/utils";
type TrendsProps = {
visualizations: any;
embedded: boolean;
};
const Trends: NextPage<TrendsProps> = ({ visualizations }) => {
const Trends: NextPage<TrendsProps> = ({ visualizations, embedded }) => {
const t = useTranslate();
const {
colors: { cdrLinkOrange },
@ -20,7 +22,7 @@ const Trends: NextPage<TrendsProps> = ({ visualizations }) => {
} = useAppContext();
return (
<Layout>
<Layout embedded={embedded}>
<Head>
<title>Digital Threat Dashboard Leafcutter</title>
</Head>
@ -82,5 +84,5 @@ export const getServerSideProps: GetServerSideProps = async (
) => {
const visualizations = await getTrends(25);
return { props: { visualizations } };
return { props: { visualizations, embedded: getEmbedded(context) } };
};