From 9f5d444ffb64daa29ad638b2dc139f3896f689ec Mon Sep 17 00:00:00 2001 From: "charly.garcia" Date: Thu, 18 Apr 2024 15:52:54 -0300 Subject: [PATCH 1/3] feat: add in the footer the legal disclaimers --- apps/eo_web/src/layouts/Footer.tsx | 98 +++++++++++++++++--------- apps/eo_web/src/layouts/FooterFull.tsx | 11 ++- 2 files changed, 73 insertions(+), 36 deletions(-) diff --git a/apps/eo_web/src/layouts/Footer.tsx b/apps/eo_web/src/layouts/Footer.tsx index db9efd50..62de40b6 100644 --- a/apps/eo_web/src/layouts/Footer.tsx +++ b/apps/eo_web/src/layouts/Footer.tsx @@ -1,7 +1,10 @@ import React from "react"; import { Typography, icons } from "@eo/ui"; + import { type Flows } from "~/stores/useProfilingStore"; + + type FlowsTypes = keyof typeof Flows; interface FooterProps { @@ -9,53 +12,74 @@ interface FooterProps { } const basicData = [ - { title: 'Terms of use', url: 'https://eo.care/web/terms-of-use' }, - { title: 'Privacy Policy', url: 'https://eo.care/web/privacy-policy' }, - { title: 'Visit eo.care', url: 'https://eo.care/web/home' } -] + { title: "Terms of use", url: "https://eo.care/web/terms-of-use" }, + { title: "Privacy Policy", url: "https://eo.care/web/privacy-policy" }, + { title: "Visit eo.care", url: "https://eo.care/web/home" }, +]; const c_org = [ - { title: 'About EO', url: 'https://partner.eo.care/c-org/about' }, - ...basicData -] + { title: "About EO", url: "https://partner.eo.care/c-org/about" }, + ...basicData, +]; const cancer_pilot = [ - { title: 'About EO', url: 'https://partner.eo.care/cancer/about' }, - ...basicData -] + { title: "About EO", url: "https://partner.eo.care/cancer/about" }, + ...basicData, +]; const inova = [ - { title: 'About EO', url: 'https://partner.eo.care/inova/about' }, - ...basicData -] + { title: "About EO", url: "https://partner.eo.care/inova/about" }, + ...basicData, +]; const twist_out_cancer = [ - { title: 'About EO', url: 'https://partner.eo.care/twist-out-cancer/about' }, - { title: 'Cannabis 101', url: 'https://partner.eo.care/twist-out-cancer/cannabis-101' }, - ...basicData -] + { title: "About EO", url: "https://partner.eo.care/twist-out-cancer/about" }, + { + title: "Cannabis 101", + url: "https://partner.eo.care/twist-out-cancer/cannabis-101", + }, + ...basicData, +]; const cancer_support_community = [ - { title: 'About EO', url: 'https://partner.eo.care/cancer-support-community/about' }, - { title: 'Cannabis 101', url: 'https://partner.eo.care/cancer-support-community/cancer-101' }, - ...basicData -] + { + title: "About EO", + url: "https://partner.eo.care/cancer-support-community/about", + }, + { + title: "Cannabis 101", + url: "https://partner.eo.care/cancer-support-community/cancer-101", + }, + ...basicData, +]; const employer_center = [ - { title: 'About EO', url: 'https://partner.eo.care/employers/about' }, - ...basicData + { title: "About EO", url: "https://partner.eo.care/employers/about" }, + ...basicData, ]; const resource_center_1 = [ - { title: 'About EO', url: 'https://partner.eo.care/cannabis-resource-center-1/about' }, - { title: 'Cannabis 101', url: 'https://partner.eo.care/cannabis-resource-center-1/cannabis-101' }, - ...basicData + { + title: "About EO", + url: "https://partner.eo.care/cannabis-resource-center-1/about", + }, + { + title: "Cannabis 101", + url: "https://partner.eo.care/cannabis-resource-center-1/cannabis-101", + }, + ...basicData, ]; const resource_center_2 = [ - { title: 'About EO', url: 'https://partner.eo.care/cannabis-resource-center-2/about' }, - { title: 'Cannabis 101', url: 'https://partner.eo.care/cannabis-resource-center-2/cannabis-101' }, - ...basicData + { + title: "About EO", + url: "https://partner.eo.care/cannabis-resource-center-2/about", + }, + { + title: "Cannabis 101", + url: "https://partner.eo.care/cannabis-resource-center-2/cannabis-101", + }, + ...basicData, ]; const allData = { @@ -67,14 +91,13 @@ const allData = { employer_center, resource_center_1, resource_center_2, - inova -} + inova, +}; export function Footer({ flow }: FooterProps) { - return (