Skip to content

Commit

Permalink
fix: build error
Browse files Browse the repository at this point in the history
  • Loading branch information
kcwww committed Nov 21, 2023
1 parent 782fcb5 commit 10f23ad
Showing 1 changed file with 2 additions and 66 deletions.
68 changes: 2 additions & 66 deletions front/src/pages/Visit/Deco/DecoEnroll.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ interface LoginProps {
view: [boolean, React.Dispatch<React.SetStateAction<boolean>>];
}

interface SocialLogin {
social: '카카오' | '네이버' | '구글';
}


const StyledBody = styled.div`
position: fixed;
Expand Down Expand Up @@ -63,42 +61,13 @@ const StyledLoginBox = styled.div`
}
`;

const StyledLogin = styled.button<SocialLogin>`
font: ${theme.font['--normal-login-font']};
height: 20%;
margin: 1% 0;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
position: relative;
background-color: ${props =>
props.social === '카카오'
? '#FEE500'
: props.social === '네이버'
? '#00C73C'
: 'white'};
`;

const StyledLogo = styled.img`
position: absolute;
left: 0;
height: 100%;
width: auto;
margin-left: 2%;
`;

const StyledSocial = styled.span`
font-weight: 700;
margin-left: 5%;
`;

const CloseLogin = (
props: LoginProps,
closeRef: React.RefObject<HTMLDivElement>,
setIsFocus: React.Dispatch<React.SetStateAction<boolean>>,
navigate: NavigateFunction,
user : string
user : string | undefined,
) => {


Expand All @@ -121,39 +90,6 @@ const CloseLogin = (
}
};

// const validLogin = (
// props: SocialLogin,
// setValid: React.Dispatch<React.SetStateAction<boolean>>
// ) => {
// // valid 체크!
// console.log(props.social);
// setValid(true);
// };

// const LoginUI = (props: SocialLogin) => {
// const [valid, setValid] = useState(false);
// const navigate = useNavigate();

// useEffect(() => {
// valid ? navigate('/make') : null;
// }, [valid, navigate]);

// return (
// <StyledLogin
// social={props.social}
// onClick={() => validLogin(props, setValid)}
// >
// {props.social === '카카오' ? (
// <StyledLogo src={'/socialLogin/kakao.svg'} />
// ) : props.social === '네이버' ? (
// <StyledLogo src={'/socialLogin/naver.svg'} />
// ) : (
// <StyledLogo src={'/socialLogin/google.svg'} />
// )}
// <StyledSocial>{props.social}</StyledSocial>로 시작하기
// </StyledLogin>
// );
// };

const DecoEnroll = (props: LoginProps) => {
const [isFocus, setIsFocus] = useState(true);
Expand Down

0 comments on commit 10f23ad

Please sign in to comment.