-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from P-r4Tes/feat/asidebar
Feat/asidbar Sidbar Component style
- Loading branch information
Showing
14 changed files
with
4,479 additions
and
6,439 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
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import * as firebaseModule from "@/api/firebase"; | ||
import { | ||
deleteUser, | ||
getUser, | ||
popUserGroup, | ||
popUserPersonalSchedule, | ||
postUser, | ||
pushUserPersonalSchedule, | ||
pushUserGroup, | ||
popUserPersonalSchedule, | ||
popUserGroup, | ||
pushUserPersonalSchedule, | ||
updateUserName, | ||
getUser, | ||
deleteUser, | ||
} from "@/api/users"; | ||
|
||
jest.mock("@/api/firebase", () => ({ | ||
|
@@ -47,7 +47,7 @@ describe("User functions", () => { | |
const id = "TEST_USER_ID"; // id 추가 | ||
const body = { email: "[email protected]", name: "CSKIM", groups: ["g1"], personalSchedules: ["s1"] }; | ||
postUser(id, body); | ||
expect(firebaseModule.postFirebase).toHaveBeenCalledWith("users", id, body); | ||
expect(firebaseModule.postFirebase).toHaveBeenCalledWith("users", body, id); | ||
}); | ||
|
||
test("전달인자가 유효하지 않다면 pushUserPersonalSchedule는 에러를 반환해야 한다", () => { | ||
|
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
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
"use client"; | ||
import { motion } from "framer-motion"; | ||
import { CSSProperties } from "react"; | ||
|
||
const Pointer = ({ top, style }: { top: number; style?: CSSProperties }) => { | ||
return ( | ||
<motion.div | ||
className={"absolute left-1 w-2 h-2 rounded-full bg-white"} | ||
style={{ ...style, top: top }} | ||
layout | ||
transition={{ type: "spring", stiffness: 700, damping: 30 }} | ||
/> | ||
); | ||
}; | ||
|
||
export default Pointer; |
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