diff --git a/src/pages/booking/selectOffice/SelectOffice.js b/src/pages/booking/selectOffice/SelectOffice.js index 01994d0..b350ff3 100644 --- a/src/pages/booking/selectOffice/SelectOffice.js +++ b/src/pages/booking/selectOffice/SelectOffice.js @@ -10,6 +10,7 @@ import SearchButtonImg from "../../../assets/images/button/searchButton.png"; import ImageButton from "../../../components/button/ImageButton"; import {SelectToggle} from "../../../components/capsule/SelectToggle"; import {TimeList} from "../../../constants/ToggleList"; +import {getToken} from "../../../utils/IsLoginUtil"; function SelectOffice(props) { @@ -22,7 +23,11 @@ function SelectOffice(props) { const [endTime, setEndTime] = useState(""); const getOfficeList = () => { - OfficesAxios.get("") + OfficesAxios.get("?size=200", { + headers: { + Authorization: getToken() + } + }) .then((Response) => { setOffices(Response.data.data.content) }) .catch((error) => {basicError(error)}) }; diff --git a/src/pages/booking/selectResource/SelectResource.js b/src/pages/booking/selectResource/SelectResource.js index 4ecbd43..97c1064 100644 --- a/src/pages/booking/selectResource/SelectResource.js +++ b/src/pages/booking/selectResource/SelectResource.js @@ -7,6 +7,7 @@ import ResourceInfo from "components/resourceInfo/ResourceInfo"; import { ResourcesAxios } from "api/AxiosApi"; import { useNavigate } from "react-router-dom"; import { basicError } from 'utils/ErrorHandlerUtil'; +import {getToken} from "../../../utils/IsLoginUtil"; export const SearchTitleContainer = styled.div` @@ -71,7 +72,11 @@ function SelectResource(props) { const [endDate, setEndDate] = useState(""); const getResourceList = () => { - ResourcesAxios.get() + ResourcesAxios.get("?size=200", { + headers: { + Authorization: getToken() + } + }) .then((Response) => { setResourceList(Response.data.data.content) }) .catch((error) => {basicError(error)}) };