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" />
|
<link rel="icon" type="image/png" href="/favicon.png" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>숙제노기</title>
|
<title>숙제노기</title>
|
||||||
<script type="module" crossorigin src="/assets/index.D8OG0Kkt.js"></script>
|
<script type="module" crossorigin src="/assets/index.B5twrJS6.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="root"></div>
|
<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 { useEffect, useState } from 'react'
|
||||||
import { useNavigate } from 'react-router-dom'
|
import { useNavigate } from 'react-router-dom'
|
||||||
import api from '../lib/api'
|
import api from '../lib/api'
|
||||||
@ -40,7 +41,8 @@ function SortableCharacterCard({ character }: { character: Character }) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
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
|
<Card
|
||||||
sx={{
|
sx={{
|
||||||
cursor: 'pointer',
|
cursor: 'pointer',
|
||||||
@ -81,6 +83,7 @@ function SortableCharacterCard({ character }: { character: Character }) {
|
|||||||
</Typography>
|
</Typography>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
|
</Box>
|
||||||
</Grid>
|
</Grid>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@ -122,7 +125,7 @@ export default function CharacterList() {
|
|||||||
{characters.map((char) => (
|
{characters.map((char) => (
|
||||||
<SortableCharacterCard key={char.id} character={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
|
<Card
|
||||||
onClick={() => (window.location.href = '/characters/register')}
|
onClick={() => (window.location.href = '/characters/register')}
|
||||||
sx={{
|
sx={{
|
||||||
|
|||||||
@ -43,7 +43,7 @@ function SortableHomeworkCard({ homework }: { homework: HomeworkType }) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
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
|
<Card
|
||||||
sx={{
|
sx={{
|
||||||
cursor: 'pointer',
|
cursor: 'pointer',
|
||||||
@ -120,7 +120,7 @@ export default function HomeworkList() {
|
|||||||
{homeworks.map((hw) => (
|
{homeworks.map((hw) => (
|
||||||
<SortableHomeworkCard key={hw.id} homework={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
|
<Card
|
||||||
onClick={() => (window.location.href = '/homeworks/register')}
|
onClick={() => (window.location.href = '/homeworks/register')}
|
||||||
sx={{
|
sx={{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user