This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*eslint-disable no-unused-vars*/ | |
import React, {Component} from 'react'; | |
import styled from 'styled-components'; | |
import PropTypes from 'prop-types'; | |
import QuantityInput from "../../../stories/tokenAllocation/QuantityInput"; | |
const AllocationTypeContainer = styled.div` | |
padding: 10px; | |
@media only screen and (min-width: 600px) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function mode(array) | |
{ | |
if(array.length == 0) | |
return null; | |
var modeMap = {}; | |
var maxEl = array[0], maxCount = 1; | |
for(var i = 0; i < array.length; i++) | |
{ | |
var el = array[i]; | |
if(modeMap[el] == null) |