|
|
|
@ -310,3 +310,10 @@ export const stringToColour = (str) => {
|
|
|
|
|
const color = '#' + hexString.substring(0, 6);
|
|
|
|
|
return color;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export const olog = (text, ...args) => {
|
|
|
|
|
console.log(
|
|
|
|
|
`%c ${text} `,
|
|
|
|
|
'background:#fb923c ; padding: 1px; border-radius: 3px; color: #fff',...args
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|