Skip to content

Commit

Permalink
feat: rename and structure files
Browse files Browse the repository at this point in the history
  • Loading branch information
LinaYahya committed Jul 4, 2024
1 parent 305214e commit fc49fba
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/modules/common/DraggableFrameWithLabels.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Box } from '@mui/material';

import { DraggableLabelType } from '@/@types';

import DraggableLabel from './DraggableLabel';
import DroppableDraggableLabel from './DroppableDraggableLabel';
import ImageFrame from './ImageFrame';

type Props = {
Expand All @@ -21,7 +21,7 @@ const DraggableFrameWithLabels = ({
}: Props): JSX.Element => {
const renderDraggableLabels = (): JSX.Element | JSX.Element[] => {
const Labels = labels.map((label) => (
<DraggableLabel label={label} key={label.ind} />
<DroppableDraggableLabel label={label} key={label.ind} />
));

return Labels;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ type Props = {
draggingOverItem?: boolean;
};

const DraggableLabel = ({ label }: Props): JSX.Element => (
const DroppableDraggableLabel = ({ label }: Props): JSX.Element => (
<Droppable droppableId={`${label.ind}`}>
{(provided, dropSnapshot) => (
<Container
Expand Down Expand Up @@ -103,4 +103,4 @@ const DraggableLabel = ({ label }: Props): JSX.Element => (
</Droppable>
);

export default DraggableLabel;
export default DroppableDraggableLabel;
4 changes: 2 additions & 2 deletions src/modules/common/PlayerFrame.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { APP } from '@/langs/constants';
import { move, reorder } from '@/utils/dnd';

import DraggableFrameWithLabels from './DraggableFrameWithLabels';
import DraggableLabel from './DraggableLabel';
import DroppableDraggableLabel from './DroppableDraggableLabel';

const PlayerFrame = (): JSX.Element => {
const { t } = useAppTranslation();
Expand Down Expand Up @@ -126,7 +126,7 @@ const PlayerFrame = (): JSX.Element => {
}}
>
{labels.slice(0, 1).map((label) => (
<DraggableLabel label={label} key={label.ind} />
<DroppableDraggableLabel label={label} key={label.ind} />
))}
</Box>
<DraggableFrameWithLabels
Expand Down

0 comments on commit fc49fba

Please sign in to comment.