Refactor, multiple crates and warnings fixes #113

Merged
sb10q merged 1 commits from esavkin/web2019:96-refactor into master 2024-08-17 17:37:18 +08:00
3 changed files with 5 additions and 5 deletions
Showing only changes of commit 3366f80ed7 - Show all commits

File diff suppressed because one or more lines are too long

View File

@ -15,8 +15,8 @@ export function CardWarnings({crate_index, card_index}) {
placement="bottom"
trigger={['click', 'hover', 'focus']}
overlay={
({arrowProps, hasDoneInitialMeasure, show, ...props}) => (
<div className="k-popup-warning" {...props}>
({arrowProps, hasDoneInitialMeasure, show, style, ...props}) => (
<div className="k-popup-warning" style={{...style, backgroundColor: max_level.color}} {...props}>
{warnings.map((warning, _i) => {
return (
<p className="rule warning" key={`warnmsg_${card_index}_${warning.name}`}>
@ -28,7 +28,7 @@ export function CardWarnings({crate_index, card_index}) {
}
rootClose
>
<img className="alert-warning" src={max_level.icon}/>
<img className="alert-warning p-0" src={max_level.icon}/>
</OverlayTrigger>
)
}

View File

@ -9,7 +9,7 @@ import {item_occupied_counters, resource_counters} from "./count_resources";
import {useShopStore} from "./shop_store";
export const Levels = {
"reminder": {priority: 1, icon: '/images/shop/icon-reminder.svg', color: "black"},
"reminder": {priority: 1, icon: '/images/shop/icon-reminder.svg', color: "#0d3547"},
"warning": {priority: 2, icon: '/images/shop/icon-warning.svg', color: "#c75e5e"},
}