Skip to content

Instantly share code, notes, and snippets.

View dynnt27's full-sized avatar

Dynn dynnt27

View GitHub Profile
/*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) {
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)