-
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.
Merge branch 'main' of https://github.com/INVINCIBLE-DMS/Service-Front
- Loading branch information
Showing
8 changed files
with
254 additions
and
71 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,26 @@ | ||
import React from "react"; | ||
import { useNavigate } from "react-router-dom"; | ||
import { styled } from "styled-components"; | ||
|
||
export const EndBtn = () => { | ||
return <Wrapper>테스트 끝내기</Wrapper>; | ||
const link = useNavigate(); | ||
|
||
const onClick = () => { | ||
link("/home"); | ||
}; | ||
|
||
return <Wrapper onClick={onClick}>설문완료</Wrapper>; | ||
}; | ||
|
||
const Wrapper = styled.div` | ||
width: 280px; | ||
height: 60px; | ||
border-radius: 50px; | ||
border: black 1px solid; | ||
position: absolute; | ||
top: 50px; | ||
right: 50px; | ||
margin-top: 200px; | ||
text-align: center; | ||
font-size: 24px; | ||
line-height: 54px; | ||
cursor: pointer; | ||
background-color: ${({ theme }) => theme.color.normalPink}; | ||
color: white; | ||
`; |
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,9 +1,9 @@ | ||
import { instance } from "../axios"; | ||
|
||
export const match = async (name) => { | ||
return await instance.get(`/user/${name}`); | ||
return await instance.get(`/user?user=${name}`); | ||
}; | ||
|
||
export const bothMatch = async (name1, name2) => { | ||
return await instance.get(`/user/both`); | ||
return await instance.get(`/user/both?user1=${name1}&user2=${name2}`); | ||
}; |
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
Oops, something went wrong.