fix(Core): updated balance top up instructions

This commit is contained in:
Dmitry Popov
2025-03-14 17:38:31 +01:00
parent b4a1cbbf55
commit a1ffe3cc0e
9 changed files with 254 additions and 1601 deletions

View File

@@ -10,11 +10,21 @@ import { CommentsEditor } from '@/hooks/Mapper/components/mapInterface/component
export const CommentsWidgetContent = () => {
const {
data: { selectedSystems },
data: { selectedSystems, isSubscriptionActive },
} = useMapRootState();
const isNotSelectedSystem = selectedSystems.length !== 1;
if (!isSubscriptionActive) {
return (
<div className="w-full h-full flex items-center justify-center">
<span className="select-none text-center text-stone-400/80 text-sm">
Comments available with &#39;Active&#39; map subscription only (contact map administrators)
</span>
</div>
);
}
if (isNotSelectedSystem) {
return (
<div className="w-full h-full flex justify-center items-center select-none text-stone-400/80 text-sm">