v.1.1 순서변경.
홈화면에 업데이트 내역 추가
This commit is contained in:
parent
f0b482aea6
commit
933469f82f
2
dist/index.html
vendored
2
dist/index.html
vendored
@ -5,7 +5,7 @@
|
||||
<link rel="icon" type="image/png" href="/favicon.png" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>숙제노기</title>
|
||||
<script type="module" crossorigin src="/assets/index.D8OG0Kkt.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index.B5twrJS6.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
|
||||
@ -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,7 +41,8 @@ function SortableCharacterCard({ character }: { character: Character }) {
|
||||
}
|
||||
|
||||
return (
|
||||
<Grid item xs={12} sm={6} md={4} ref={setNodeRef} style={style}>
|
||||
<Grid item xs={12} sm={6} md={4} {...({} as any)}>
|
||||
<Box ref={setNodeRef} style={style}>
|
||||
<Card
|
||||
sx={{
|
||||
cursor: 'pointer',
|
||||
@ -81,6 +83,7 @@ function SortableCharacterCard({ character }: { character: Character }) {
|
||||
</Typography>
|
||||
</CardContent>
|
||||
</Card>
|
||||
</Box>
|
||||
</Grid>
|
||||
)
|
||||
}
|
||||
@ -122,7 +125,7 @@ export default function CharacterList() {
|
||||
{characters.map((char) => (
|
||||
<SortableCharacterCard key={char.id} character={char} />
|
||||
))}
|
||||
<Grid component="div" item xs={12} sm={6} md={4}>
|
||||
<Grid item xs={12} sm={6} md={4} {...({} as any)}>
|
||||
<Card
|
||||
onClick={() => (window.location.href = '/characters/register')}
|
||||
sx={{
|
||||
|
||||
@ -43,7 +43,7 @@ function SortableHomeworkCard({ homework }: { homework: HomeworkType }) {
|
||||
}
|
||||
|
||||
return (
|
||||
<Grid component="div" item xs={12} sm={6} md={4} ref={setNodeRef} style={style}>
|
||||
<Grid item xs={12} sm={6} md={4} ref={setNodeRef} style={style} {...({} as any)}>
|
||||
<Card
|
||||
sx={{
|
||||
cursor: 'pointer',
|
||||
@ -120,7 +120,7 @@ export default function HomeworkList() {
|
||||
{homeworks.map((hw) => (
|
||||
<SortableHomeworkCard key={hw.id} homework={hw} />
|
||||
))}
|
||||
<Grid item xs={12} sm={6} md={4}>
|
||||
<Grid item xs={12} sm={6} md={4} {...({} as any)}>
|
||||
<Card
|
||||
onClick={() => (window.location.href = '/homeworks/register')}
|
||||
sx={{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user