Skip to content

Commit

Permalink
refactor: 클릭 핸들러 네이밍 간소화
Browse files Browse the repository at this point in the history
  • Loading branch information
ImxYJL committed Dec 23, 2024
1 parent ce28545 commit d86064f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions frontend/src/components/common/GithubLoginButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ import { LoginButtonStyleProps } from '@/components/common/LoginButton';
import { LoginButton } from '@/components/index';

interface GithubLoginButtonProps extends LoginButtonStyleProps {
handleGithubLoginButtonClick: () => void;
handleClick: () => void;
}

const GithubLoginButton = ({ handleGithubLoginButtonClick, $logoStyle, $style }: GithubLoginButtonProps) => {
const GithubLoginButton = ({ handleClick, $logoStyle, $style }: GithubLoginButtonProps) => {
return (
<LoginButton
platform="깃허브"
engPlatform="github"
handleLoginButtonClick={handleGithubLoginButtonClick}
handleClick={handleClick}
logoSrc={GithubWhiteLogoIcon}
$logoStyle={$logoStyle}
$style={$style}
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/components/common/LoginButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interface LoginButtonProps extends LoginButtonStyleProps {
platform: string;
engPlatform?: string;
logoSrc: string;
handleLoginButtonClick: () => void;
handleClick: () => void;
}

export interface LoginButtonStyleProps {
Expand All @@ -19,12 +19,12 @@ const LoginButton = ({
platform,
engPlatform,
logoSrc,
handleLoginButtonClick,
handleClick,
$logoStyle,
$style,
}: LoginButtonProps) => {
return (
<Button onClick={handleLoginButtonClick} styleType="primary" style={$style}>
<Button onClick={handleClick} styleType="primary" style={$style}>
<S.ButtonLabelContainer>
<S.LogoImg src={logoSrc} alt={`${platform} 로고`} $logoStyle={$logoStyle} />
<span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const LoginRequestModal = ({ titleType, closeModal }: LoginRequestModalProps) =>
<S.LoginRequestModal>
<S.LoginRequestLabel>로그인 후 간편하게 받은 리뷰를 확인하세요!</S.LoginRequestLabel>
<GithubLoginButton
handleGithubLoginButtonClick={() => {}}
handleClick={() => {}}
$logoStyle={{ height: '3rem' }}
$style={{ fontSize: '1.3rem', height: '4rem', width: '100%' }}
/>
Expand Down

0 comments on commit d86064f

Please sign in to comment.