- update dependencies

- upgrade gatsby v2 to v3
- update functions
This commit is contained in:
Amruth Pillai
2021-05-29 11:47:34 +05:30
parent b0bd8c94f3
commit 2c22c13f3e
133 changed files with 44805 additions and 13338 deletions
+4 -5
View File
@@ -1,7 +1,7 @@
import React, { memo, useContext } from 'react';
import ReactMarkdown from 'react-markdown';
import PageContext from '../../../contexts/PageContext';
import { safetyCheck } from '../../../utils';
import PageContext from '../../../contexts/PageContext';
const ObjectiveA = () => {
const { data, heading: Heading } = useContext(PageContext);
@@ -10,10 +10,9 @@ const ObjectiveA = () => {
safetyCheck(data.objective, 'body') && (
<div>
<Heading>{data.objective.heading}</Heading>
<ReactMarkdown
className="markdown text-sm"
source={data.objective.body}
/>
<ReactMarkdown className="markdown text-sm">
{data.objective.body}
</ReactMarkdown>
</div>
)
);