Skip to content

Instantly share code, notes, and snippets.

View philJohnson's full-sized avatar

Phillip Johnson philJohnson

  • Prezzee
  • Bli Bli, Qld
View GitHub Profile
@philJohnson
philJohnson / LanguageSelector.tsx
Created June 16, 2021 07:04
Polylang Language Selector
import React from 'react';
import { StaticQuery, graphql } from 'gatsby';
import { StyledLocationSelector, StyledList } from './styles';
export const LanguageSelector: React.StatelessComponent<any> = ({language}) => (
<StaticQuery
query={graphql`
query Languages {