diff colros
This commit is contained in:
@@ -147,15 +147,7 @@ export const createClustersPageConfig = (
|
|||||||
align: 'center' as const,
|
align: 'center' as const,
|
||||||
render: (value: number) => {
|
render: (value: number) => {
|
||||||
const difficultyNum = getDifficultyNumber(value);
|
const difficultyNum = getDifficultyNumber(value);
|
||||||
const difficultyBadgeVariant =
|
const difficultyBadgeVariant = 'light';
|
||||||
typeof difficultyNum === 'number' && difficultyNum === 5
|
|
||||||
? 'solid'
|
|
||||||
: typeof difficultyNum === 'number' &&
|
|
||||||
(difficultyNum === 2 || difficultyNum === 3 || difficultyNum === 4)
|
|
||||||
? 'light'
|
|
||||||
: typeof difficultyNum === 'number' && difficultyNum === 1
|
|
||||||
? 'solid'
|
|
||||||
: 'light';
|
|
||||||
const difficultyBadgeColor =
|
const difficultyBadgeColor =
|
||||||
typeof difficultyNum === 'number' && difficultyNum === 1
|
typeof difficultyNum === 'number' && difficultyNum === 1
|
||||||
? 'success'
|
? 'success'
|
||||||
|
|||||||
@@ -175,15 +175,7 @@ export const createKeywordsPageConfig = (
|
|||||||
align: 'center' as const,
|
align: 'center' as const,
|
||||||
render: (value: number) => {
|
render: (value: number) => {
|
||||||
const difficultyNum = getDifficultyNumber(value);
|
const difficultyNum = getDifficultyNumber(value);
|
||||||
const difficultyBadgeVariant =
|
const difficultyBadgeVariant = 'light';
|
||||||
typeof difficultyNum === 'number' && difficultyNum === 5
|
|
||||||
? 'solid'
|
|
||||||
: typeof difficultyNum === 'number' &&
|
|
||||||
(difficultyNum === 2 || difficultyNum === 3 || difficultyNum === 4)
|
|
||||||
? 'light'
|
|
||||||
: typeof difficultyNum === 'number' && difficultyNum === 1
|
|
||||||
? 'solid'
|
|
||||||
: 'light';
|
|
||||||
const difficultyBadgeColor =
|
const difficultyBadgeColor =
|
||||||
typeof difficultyNum === 'number' && difficultyNum === 1
|
typeof difficultyNum === 'number' && difficultyNum === 1
|
||||||
? 'success'
|
? 'success'
|
||||||
|
|||||||
@@ -459,15 +459,7 @@ export default function KeywordOpportunities() {
|
|||||||
align: 'center' as const,
|
align: 'center' as const,
|
||||||
render: (value: number) => {
|
render: (value: number) => {
|
||||||
const difficultyNum = getDifficultyNumber(value);
|
const difficultyNum = getDifficultyNumber(value);
|
||||||
const difficultyBadgeVariant =
|
const difficultyBadgeVariant = 'light';
|
||||||
typeof difficultyNum === 'number' && difficultyNum === 5
|
|
||||||
? 'solid'
|
|
||||||
: typeof difficultyNum === 'number' &&
|
|
||||||
(difficultyNum === 2 || difficultyNum === 3 || difficultyNum === 4)
|
|
||||||
? 'light'
|
|
||||||
: typeof difficultyNum === 'number' && difficultyNum === 1
|
|
||||||
? 'solid'
|
|
||||||
: 'light';
|
|
||||||
const difficultyBadgeColor =
|
const difficultyBadgeColor =
|
||||||
typeof difficultyNum === 'number' && difficultyNum === 1
|
typeof difficultyNum === 'number' && difficultyNum === 1
|
||||||
? 'success'
|
? 'success'
|
||||||
|
|||||||
Reference in New Issue
Block a user