Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
chore: updated locations page
Browse files Browse the repository at this point in the history
  • Loading branch information
hasan-deriv committed Mar 1, 2024
1 parent 7596c09 commit 4a48817
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions themes/gatsby-theme-deriv/src/pages/careers/locations/index.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -189,6 +188,7 @@ const StyledName = styled(Text)`
order: 0;
flex-grow: 0;
`

const CountryCard = ({
country_name,
continent,
Expand Down Expand Up @@ -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" }) {
Expand Down Expand Up @@ -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)
Expand All @@ -317,7 +308,7 @@ const Locations = () => {
}

return (
<Layout type="careers">
<Layout region={region} type="careers">
<Hero />
<StyledSectionContainer direction="column" padding="80px 16px">
<Header
Expand Down

0 comments on commit 4a48817

Please sign in to comment.