mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-23 01:56:52 +03:00
removed no longer used colorFromString
This commit is contained in:
parent
6f839bdc10
commit
39512ff8e9
|
@ -2,14 +2,6 @@ import React, { PropTypes } from 'react';
|
||||||
import JSONTree from './JSONTree';
|
import JSONTree from './JSONTree';
|
||||||
import LogMonitorEntryAction from './LogMonitorEntryAction';
|
import LogMonitorEntryAction from './LogMonitorEntryAction';
|
||||||
|
|
||||||
function colorFromString(theme, token) {
|
|
||||||
const splitToken = token.split('');
|
|
||||||
const finalToken = splitToken.concat(splitToken.reverse());
|
|
||||||
const number = (parseInt(finalToken, 36) + finalToken.length) % 8;
|
|
||||||
const themeNumber = 'base0' + (number + 8).toString(16).toUpperCase();
|
|
||||||
return theme[themeNumber];
|
|
||||||
}
|
|
||||||
|
|
||||||
const styles = {
|
const styles = {
|
||||||
entry: {
|
entry: {
|
||||||
display: 'block',
|
display: 'block',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user