mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-22 09:36:43 +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 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 = {
|
||||
entry: {
|
||||
display: 'block',
|
||||
|
|
Loading…
Reference in New Issue
Block a user