Feat: edit tier level name

This commit is contained in:
2025-01-10 16:02:21 +03:00
parent c30855beda
commit ae7c821562
4 changed files with 70 additions and 5 deletions

View File

@@ -2,6 +2,7 @@ import { DndContext, DragEndEvent } from '@dnd-kit/core';
import { useRef } from 'react';
import { useShallow } from 'zustand/shallow';
import './App.scss';
import { EditTierModal } from './components/EditTierModal';
import { TierImage } from './components/Image';
import { Tier } from './components/Tier';
import { TierModal } from './components/TierModal';
@@ -41,11 +42,12 @@ const App = () => {
color={tier_level.color}
textColor={tier_level.textColor}
name={tier_level.name}
key={tier_level.name}
id={tier_level.id}
key={tier_level.id ?? tier_level.name}
/>
))}
</div>
<div className='flex flex-row w-full '>
<div className='flex flex-row w-full gap-1 p-5'>
{images
.filter(image => image.category === '')
.map((image, index) => (
@@ -79,6 +81,7 @@ const App = () => {
/>
</div>
<TierModal />
<EditTierModal />
</DndContext>
);
};