Skip to content

Commit

Permalink
fix: eslint error
Browse files Browse the repository at this point in the history
  • Loading branch information
a-honey committed Feb 29, 2024
1 parent cd71368 commit 5dc64ef
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 31 deletions.
7 changes: 1 addition & 6 deletions src/components/atoms/BorderTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,7 @@ interface BorderTabProps {
clickHandler?: () => void;
className?: string;
}
const BorderTab: React.FC<BorderTabProps> = ({
tabName,
className,
currentTabName,
handleTabNameChange,
}) => {
const BorderTab: React.FC<BorderTabProps> = ({ tabName, className, currentTabName, handleTabNameChange }) => {
return (
<div
className={`bg-white w-full border-2 p-[8px] text-center rounded-[24px] ${className} ${
Expand Down
15 changes: 7 additions & 8 deletions src/components/atoms/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@ interface ButtonProps {
className?: string;
}

const Button: React.FC<
ButtonProps & React.ButtonHTMLAttributes<HTMLButtonElement>
> = ({ text, className, onClick, ...props }) => {
const Button: React.FC<ButtonProps & React.ButtonHTMLAttributes<HTMLButtonElement>> = ({
text,
className,
onClick,
...props
}) => {
return (
<button
className={`p-18 gap-12 rounded-12 heading4-semibold ${className}`}
onClick={onClick}
{...props}
>
<button className={`p-18 gap-12 rounded-12 heading4-semibold ${className}`} onClick={onClick} {...props}>
{text}
</button>
);
Expand Down
8 changes: 2 additions & 6 deletions src/components/atoms/CheckBox.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
import { CheckIcon } from '@/assets/icons';
import React from 'react';

const CheckBox: React.FC<{ active: boolean; onClick: () => void }> = ({
active = false,
onClick,
}) => {
const commonStyle =
'flex justify-center items-center w-[20px] h-[20px] rounded-full';
const CheckBox: React.FC<{ active: boolean; onClick: () => void }> = ({ active = false, onClick }) => {
const commonStyle = 'flex justify-center items-center w-[20px] h-[20px] rounded-full';
const buttonClassName = `${commonStyle} ${active ? 'bg-primary2' : 'border border-gray5'}`;
return (
<button onClick={onClick} className={buttonClassName}>
Expand Down
11 changes: 3 additions & 8 deletions src/components/atoms/ExclamationAlertSpan.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
import React from 'react';
import { ExclamationIcon } from '@/assets/icons';
import React from 'react';

interface AlertMessageProps {
message: string;
className?: string;
}

const ExclamationAlertSpan: React.FC<AlertMessageProps> = ({
message,
className,
}) => {
const ExclamationAlertSpan: React.FC<AlertMessageProps> = ({ message, className }) => {
return (
<span
className={`flex items-center gap-[4px] text-point4 body1-medium ${className}`}
>
<span className={`flex items-center gap-[4px] text-point4 body1-medium ${className}`}>
<ExclamationIcon />
{message}
</span>
Expand Down
4 changes: 1 addition & 3 deletions src/pages/mypage/notification/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ const NotificationPage: NextPage = () => {
return (
<div className={'pt-[52px] min-h-screen'}>
<Header headerTitle={'알림'} />
<section
className={`flex flex-col gap-[20px] min-h-screen p-20 bg-gray1`}
>
<section className={`flex flex-col gap-[20px] min-h-screen p-20 bg-gray1`}>
<div className="flex flex-col justify-center items-center gap-22 p-32 w-full bg-white rounded-12 p-[18px]">
<div className="w-full flex justify-between items-center">
<div className="heading4-semibold">알림 허용</div>
Expand Down

0 comments on commit 5dc64ef

Please sign in to comment.