Skip to content

Commit

Permalink
Merge pull request #313 from lad-tech/mibydick-2-colors
Browse files Browse the repository at this point in the history
fix: update deprecated colors
  • Loading branch information
vpsmolina authored Jan 21, 2025
2 parents d48857a + 4d4aa45 commit 9333731
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
28 changes: 14 additions & 14 deletions packages/core/src/other/components/Avatar/Avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,24 +30,24 @@ const Avatar: FC<IAvatarProps> = props => {
const nameLength = `${user?.firstName}${user?.middleName}${user?.lastName}`
.length;
const avatarColors = [
colors.BannerFirst,
colors.BannerSecond,
colors.BannerThird,
colors.BannerFourth,
colors.BannerFifth,
colors.BannerSixth,
colors.BannerSeventh,
colors.AdditionalFirst,
colors.AdditionalSecond,
colors.AdditionalThird,
colors.AdditionalFourth,
colors.AdditionalFifth,
colors.AdditionalSixth,
colors.AdditionalSeventh,
];
return avatarColors[nameLength % avatarColors.length];
}, [
user,
colors.BannerFirst,
colors.BannerSecond,
colors.BannerThird,
colors.BannerFourth,
colors.BannerFifth,
colors.BannerSixth,
colors.BannerSeventh,
colors.AdditionalFirst,
colors.AdditionalSecond,
colors.AdditionalThird,
colors.AdditionalFourth,
colors.AdditionalFifth,
colors.AdditionalSixth,
colors.AdditionalSeventh,
]);

const [styles] = useStyles(stylesCreate, size, border);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ exports[`Avatar render avatar without firstName 1`] = `
"width": 40,
},
{
"backgroundColor": "#FA9247",
"backgroundColor": "#FE8027",
},
undefined,
{
Expand Down Expand Up @@ -647,7 +647,7 @@ exports[`Avatar render avatar without firstName and lastName 1`] = `
"width": 40,
},
{
"backgroundColor": "#FAB742",
"backgroundColor": "#FABC42",
},
undefined,
{
Expand Down
4 changes: 2 additions & 2 deletions src/widgets/Chart/ui/RenderSectionItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ const RenderSectionItem = ({period, state, transition, index}: IProps) => {
}

if (index === current && index === next) {
return {backgroundColor: colors.BgAccentHard};
return {backgroundColor: colors.AdditionalSixthHard};
}

return {
backgroundColor: interpolateColor(
transition.value,
index === next ? [0, 1] : [1, 0],
[colors.BgAccent, colors.BgAccentHard],
[colors.BgAccent, colors.AdditionalSixthHard],
),
};
});
Expand Down

0 comments on commit 9333731

Please sign in to comment.