-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
프론트2명 코드 합침
- Loading branch information
Showing
13 changed files
with
10,202 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import React, {useEffect, useState} from "react" | ||
import axios from "axios" | ||
|
||
|
||
const HistoryList = () => { | ||
const [HistoryList, setHistoryList] = useState([]); | ||
|
||
const getBoardList = async () => { | ||
const resp = (await axios.get('//localhost:8080/history')).data | ||
setHistoryList(resp.date) | ||
|
||
const pngn = resp.pagination; | ||
console.log(HistoryList); | ||
} | ||
|
||
useEffect(() => { | ||
getHistoryList(); | ||
}, []); | ||
|
||
return ( | ||
<div> | ||
<ul> | ||
{HistoryList.map((board) => ( | ||
<li key={board.idx}><board.title></board.title></li> | ||
))} | ||
</ul> | ||
</div> | ||
); | ||
}; | ||
|
||
export default HistoryList; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
vertical-align: top; | ||
text-align: center; | ||
border: 1px; | ||
z-index:1; | ||
} | ||
|
||
.Close-button { | ||
|
Oops, something went wrong.