From f28df97a239af53c70a5101805d4481203885a09 Mon Sep 17 00:00:00 2001 From: Piotr Brudny Date: Thu, 28 Sep 2023 14:58:51 +0200 Subject: [PATCH] Removed description --- src/common/Description.js | 77 --------------------------------------- 1 file changed, 77 deletions(-) delete mode 100644 src/common/Description.js diff --git a/src/common/Description.js b/src/common/Description.js deleted file mode 100644 index 534072b..0000000 --- a/src/common/Description.js +++ /dev/null @@ -1,77 +0,0 @@ -import React, {Component} from "react"; -import {documentToReactComponents} from "@contentful/rich-text-react-renderer"; -import PropTypes from "prop-types"; -import Heading from './Heading'; - -class Description extends Component { - render() { - const { - titleA, titleB, titleC, titleD, descriptionA, descriptionB, descriptionC, descriptionD, - titleE, descriptionE, - description - } = this.props.job.fields; - return ( -
- { description && documentToReactComponents(description) } - - { titleA && - - { titleA } - - } - { descriptionA && -
- { documentToReactComponents(descriptionA) } -
- } - - { titleB && - - { titleB } - - } - { descriptionB && -
- { documentToReactComponents(descriptionB) } -
- } - - { titleC && - - { titleC } - - } - { descriptionC && -
- { documentToReactComponents(descriptionC) } -
- } - - { titleD && - - { titleD } - - } - { descriptionD && -
- { documentToReactComponents(descriptionD) } -
- } - - { titleE && - - { titleE } - - } - { descriptionE && -
- { documentToReactComponents(descriptionE) } -
- } -
- ) - } -} - -Description.propTypes = {job: PropTypes.any}; -export default Description;