{supportList.map((card) => (
- {card.isModal ? (
-
-
-
-
- {card.title}
-
- {card.description}
-
-
-
- ) : (
-
+ {
+
@@ -156,7 +139,7 @@ export const SupportSection = (props) => {
- )}
+ }
))}
@@ -185,5 +168,4 @@ SupportSection.propTypes = {
title: PropTypes.string,
supportList: PropTypes.array,
buttonLabel: PropTypes.string,
- handleToggle: PropTypes.func,
};
diff --git a/src/layouts/support/Assistance.jsx b/src/layouts/support/Assistance.jsx
index 0221709f4..c4167fa16 100644
--- a/src/layouts/support/Assistance.jsx
+++ b/src/layouts/support/Assistance.jsx
@@ -1,14 +1,13 @@
/* eslint-disable prettier/prettier */
-import React, { useContext } from 'react';
+import React from 'react';
import { createUseStyles } from 'react-jss';
-import { Button } from 'design-react-kit';
+import { Link } from 'gatsby';
import { HeroTitle } from '../../components/hero/HeroTitle';
import { HeroBody } from '../../components/hero/HeroBody';
import { HeroCtaContainer } from '../../components/hero/HeroCtaContainer';
import { HeroGraphic } from '../../components/hero/HeroGraphic';
import { Hero } from '../../components/hero/Hero';
import content from '../../../contents/support-page/support.yml';
-import { GlobalStateContext } from '../../context/globalContext';
const {
heroAssistance: { title, body, btnText },
@@ -37,7 +36,6 @@ const useStyle = createUseStyles({
export const Assistance = () => {
const classes = useStyle();
- const [, dispatch] = useContext(GlobalStateContext);
return (