Skip to content

Commit

Permalink
Merge branch 'main' into update-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
SeungJL committed May 6, 2024
2 parents 842438d + ac38f35 commit d92aa3e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//전체
export const ALL_스터디인증 = "65263917e90698c18a3b1e99";
export const ALL_스터디인증 = "6479f39e907daf3e8a5cda6e";

//수원
export const SUWAN_수원시청 = "64395f1e8d1edf4e056e993d";
Expand Down
1 change: 0 additions & 1 deletion pageTemplates/study/StudyCover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ interface IStudyCover {
function StudyCover({ brand, imageUrl, isPrivateStudy }: IStudyCover) {
const brandName = brand === "행궁 81.2" ? "행궁" : isPrivateStudy ? "개인스터디" : brand;
const logo = STUDY_CAFE_LOGO[brandName];
console.log(brandName);

return (
<StudyCoverWrapper>
Expand Down
2 changes: 1 addition & 1 deletion pages/admin/system/studyStatus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function AdminStudyStatus() {
const { data: SUWAN } = useStudyVoteQuery(dayjsToStr(date), "수원");
const { data: YANG } = useStudyVoteQuery(dayjsToStr(date), "양천");

console.log(date, SUWAN);


const handleStatus = (type: StudyStatus) => {};

Expand Down
7 changes: 4 additions & 3 deletions pages/study/[id]/[date]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import styled from "styled-components";
import Divider from "../../../../components/atoms/Divider";
import Slide from "../../../../components/layouts/PageSlide";
import { PLACE_TO_LOCATION } from "../../../../constants/serviceConstants/studyConstants/studyLocationConstants";
import { ALL_스터디인증 } from "../../../../constants/serviceConstants/studyConstants/studyPlaceConstants";
import { useStudyVoteQuery } from "../../../../hooks/study/queries";
import { getStudyDateStatus } from "../../../../libs/study/date/getStudyDateStatus";
import { getMyStudy } from "../../../../libs/study/getMyStudy";
Expand All @@ -26,9 +27,10 @@ export default function Page() {
const setMyStudy = useSetRecoilState(myStudyState);

const location = PLACE_TO_LOCATION[id];
console.log(location);
const isPrivateStudy = id === ALL_스터디인증;

const { data: studyAll } = useStudyVoteQuery(date, location, {
enabled: !!location && !!date,
enabled: (!!location || isPrivateStudy) && !!date,
});

const [studyDateStatus, setStudyDateStatus] = useRecoilState(studyDateStatusState);
Expand All @@ -50,7 +52,6 @@ export default function Page() {
studyDateStatus !== "not passed"
? study?.attendences.filter((att) => att.firstChoice)
: study?.attendences;
const isPrivateStudy = place?.brand === "자유 신청";

return (
<Layout>
Expand Down

0 comments on commit d92aa3e

Please sign in to comment.