Skip to content

Instantly share code, notes, and snippets.

View ip512's full-sized avatar

Gregory ip512

  • Fairness
  • Paris - France
View GitHub Profile

Keybase proof

I hereby claim:

  • I am ip512 on github.
  • I am ip512 (https://keybase.io/ip512) on keybase.
  • I have a public key ASDVoIg7rmFl4PiCB2fn3ATprlNn85X5Y7RTStoWRLVFzgo

To claim this, I am signing this object:

@ip512
ip512 / Sort.jsx
Last active January 30, 2019 17:16
Sort react component
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Translator from 'bazinga-translator';
const sortTypes = ['publicationDate', 'price', 'km'];
const sortDirections = ['ascending', 'descending'];
export default class Sort extends Component {
getLabel(sortType) {
const labels = {