fixed remove bug with player & guild sections

This commit is contained in:
dan13ram
2023-01-18 23:40:42 +05:30
committed by Dan OneTree
parent 0da62e9ee9
commit 9173fcdc0d
2 changed files with 24 additions and 20 deletions

View File

@@ -1,4 +1,4 @@
import { Flex, IconButton } from '@metafam/ds';
import { Box, Flex, IconButton } from '@metafam/ds';
import { GuildAnnouncements } from 'components/Guild/Section/GuildAnnouncements';
import { GuildHero } from 'components/Guild/Section/GuildHero';
import { GuildLinks } from 'components/Guild/Section/GuildLinks';
@@ -57,14 +57,16 @@ export const GuildSection = forwardRef<HTMLDivElement, Props>(
boxShadow="md"
pos="relative"
>
<GuildSectionInner
{...{
metadata,
type,
guild,
editing,
}}
/>
<Box pointerEvents={editing ? 'none' : 'initial'}>
<GuildSectionInner
{...{
metadata,
type,
guild,
editing,
}}
/>
</Box>
{editing && (
<Flex
className="gridItemOverlay"

View File

@@ -1,4 +1,4 @@
import { Flex, IconButton } from '@metafam/ds';
import { Box, Flex, IconButton } from '@metafam/ds';
import { PlayerAchievements } from 'components/Player/Section/PlayerAchievements';
import { PlayerCompletedQuests } from 'components/Player/Section/PlayerCompletedQuests';
import { PlayerGallery } from 'components/Player/Section/PlayerGallery';
@@ -78,17 +78,18 @@ export const PlayerSection = forwardRef<HTMLDivElement, Props>(
minH="100%"
boxShadow="md"
pos="relative"
pointerEvents={editing ? 'none' : 'initial'}
>
<PlayerSectionInner
{...{
metadata,
type,
player,
isOwnProfile,
editing,
}}
/>
<Box pointerEvents={editing ? 'none' : 'initial'}>
<PlayerSectionInner
{...{
metadata,
type,
player,
isOwnProfile,
editing,
}}
/>
</Box>
{editing && (
<Flex
className="gridItemOverlay"
@@ -103,6 +104,7 @@ export const PlayerSection = forwardRef<HTMLDivElement, Props>(
{editing && type && type !== BoxTypes.PLAYER_HERO && (
<IconButton
aria-label="Remove Profile Section"
zIndex={100}
size="lg"
pos="absolute"
top={0}