diff --git a/src/components/Select.js b/src/components/Select.js new file mode 100644 index 000000000..7cc878106 --- /dev/null +++ b/src/components/Select.js @@ -0,0 +1,93 @@ +import React from 'react'; +import PropTypes from 'prop-types'; +import { css } from '@emotion/react'; + +const Select = ({ disabled, ...props }) => ( +
+ { + setSortState(e.target.value); + document.getElementById(e.target.id).blur(); + }} > - Sort by - - - - {sortState} - - - { - setSortState('Alphabetical'); - }} - > - Alphabetical - - { - setSortState('Reverse'); - }} - > - Reverse - - { - setSortState('Popularity'); - }} - > - Popularity - - - -
-
- ( + + ))} + + + + + + +