From 4a4881723f4e0b64b92ccb54dd7469a6f2ccfeb1 Mon Sep 17 00:00:00 2001 From: hasan-deriv Date: Fri, 1 Mar 2024 11:16:51 +0800 Subject: [PATCH] chore: updated locations page --- .../src/pages/careers/locations/index.tsx | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) 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 ( - +