mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-23 21:21:32 +10:00
- completed design of Onyx template
This commit is contained in:
16
src/templates/blocks/Objective/ObjectiveA.js
Normal file
16
src/templates/blocks/Objective/ObjectiveA.js
Normal 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);
|
||||
Reference in New Issue
Block a user