diff --git a/themes/gatsby-theme-deriv/src/pages/careers/locations/index.tsx b/themes/gatsby-theme-deriv/src/pages/careers/locations/index.tsx index bfdd1130819..d584709b8ff 100644 --- a/themes/gatsby-theme-deriv/src/pages/careers/locations/index.tsx +++ b/themes/gatsby-theme-deriv/src/pages/careers/locations/index.tsx @@ -1,5 +1,4 @@ import React from 'react' -import PropTypes from 'prop-types' import styled from 'styled-components' import { graphql, useStaticQuery } from 'gatsby' import type { ImageDataLike } from 'gatsby-plugin-image' @@ -189,6 +188,7 @@ const StyledName = styled(Text)` order: 0; flex-grow: 0; ` + const CountryCard = ({ country_name, continent, @@ -221,16 +221,6 @@ const CountryCard = ({ ) } -CountryCard.propTypes = { - city_name: PropTypes.string, - country_name: PropTypes.string, - Icon: PropTypes.string, - img_alt: PropTypes.string, - img_data: PropTypes.object, - link: PropTypes.string, - open_positions: PropTypes.number, -} - const query = graphql` query { thumbnail_cyberjaya: file(relativePath: { eq: "careers/thumbnail_cyberjaya.png" }) { @@ -299,7 +289,8 @@ const query = graphql` } ` -const Locations = () => { +const Locations = ({pageContext}: TGatsbyHead) => { + const {region} = pageContext const images = useStaticQuery(query) const continents = Object.keys(allContinents) @@ -317,7 +308,7 @@ const Locations = () => { } return ( - +