From 933469f82f2e3c0184ed1cf7c15a20357a5cf7e9 Mon Sep 17 00:00:00 2001 From: SR07 Date: Wed, 28 May 2025 17:06:40 +0900 Subject: [PATCH] =?UTF-8?q?v.1.1=20=EC=88=9C=EC=84=9C=EB=B3=80=EA=B2=BD.?= =?UTF-8?q?=20=ED=99=88=ED=99=94=EB=A9=B4=EC=97=90=20=EC=97=85=EB=8D=B0?= =?UTF-8?q?=EC=9D=B4=ED=8A=B8=20=EB=82=B4=EC=97=AD=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/index.html | 2 +- src/pages/CharacterList.tsx | 81 +++++++++++++++++++------------------ src/pages/HomeworkList.tsx | 4 +- 3 files changed, 45 insertions(+), 42 deletions(-) diff --git a/dist/index.html b/dist/index.html index 5a8170f..e4d08a9 100644 --- a/dist/index.html +++ b/dist/index.html @@ -5,7 +5,7 @@ 숙제노기 - +
diff --git a/src/pages/CharacterList.tsx b/src/pages/CharacterList.tsx index 7325bb8..a637192 100644 --- a/src/pages/CharacterList.tsx +++ b/src/pages/CharacterList.tsx @@ -1,4 +1,5 @@ -import { Box, Card, CardContent, Typography, Container, Grid } from '@mui/material' +import { Box, Card, CardContent, Typography, Container } from '@mui/material' +import { Grid } from '@mui/material' import { useEffect, useState } from 'react' import { useNavigate } from 'react-router-dom' import api from '../lib/api' @@ -40,47 +41,49 @@ function SortableCharacterCard({ character }: { character: Character }) { } return ( - - navigate(`/characters/${character.id}/edit`)} - > - {/* 드래그 핸들 */} - + + e.stopPropagation()} + onClick={() => navigate(`/characters/${character.id}/edit`)} > - - + {/* 드래그 핸들 */} + e.stopPropagation()} + > + + - - {character.name} - 서버: {character.server || '-'} - 직업: {character.job || '-'} - - 전투력: {character.combat_power?.toLocaleString() || '-'} - - - + + {character.name} + 서버: {character.server || '-'} + 직업: {character.job || '-'} + + 전투력: {character.combat_power?.toLocaleString() || '-'} + + + + ) } @@ -122,7 +125,7 @@ export default function CharacterList() { {characters.map((char) => ( ))} - + (window.location.href = '/characters/register')} sx={{ diff --git a/src/pages/HomeworkList.tsx b/src/pages/HomeworkList.tsx index 8d0772d..bc52cce 100644 --- a/src/pages/HomeworkList.tsx +++ b/src/pages/HomeworkList.tsx @@ -43,7 +43,7 @@ function SortableHomeworkCard({ homework }: { homework: HomeworkType }) { } return ( - + ( ))} - + (window.location.href = '/homeworks/register')} sx={{