- completed design of Onyx template

This commit is contained in:
Amruth Pillai
2020-07-11 10:49:55 +05:30
parent a8c5d29858
commit 0b5653fab5
32 changed files with 848 additions and 122 deletions

View File

@ -0,0 +1,16 @@
import React, { useContext, memo } from 'react';
import ReactMarkdown from 'react-markdown';
import PageContext from '../../../contexts/PageContext';
const ObjectiveA = () => {
const { data, heading: Heading } = useContext(PageContext);
return (
<div>
<Heading>{data.objective.heading}</Heading>
<ReactMarkdown className="text-sm" source={data.objective.body} />
</div>
);
};
export default memo(ObjectiveA);