This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const removeFieldsFromObject = (obj, ...fieldNames) => { | |
let newObj = { ...obj }; | |
fieldNames.forEach((x) => { | |
const { [x]: removed, ...rest } = newObj; | |
newObj = rest; | |
}); | |
return newObj; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import isEqual from 'lodash/isEqual'; | |
import uniqWith from 'lodash/uniqWith'; | |
import { GRAPHQL_QUERY } from 'utils/contentful/graphqlQuery'; | |
import { | |
getGraphqlResultArticles, | |
getGraphqlResultArticlesByTags, | |
getGraphqlResultTags, | |
getGraphqlResultTotalArticlesCount, | |
getGraphqlResultTotalArticlesCountByTags, | |
} from 'utils/contentful/helper'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cn from 'classnames'; | |
import PropTypes from 'prop-types'; | |
import dynamic from 'next/dynamic'; | |
import Illustration from 'UI/components/Illustration'; | |
import { LINK_TYPE } from 'utils/constants/linkType'; | |
import useProps from './utils/useProps'; | |
import styles from './styles.module.scss'; | |
const Contact = dynamic(() => import('./content/Contact')); | |
const GetBook = dynamic(() => import('./content/GetBook')); |