부가서비스 소개 수정
This commit is contained in:
@@ -1,35 +0,0 @@
|
||||
import { IntroListItemProps } from '../model/types';
|
||||
import { useNavigate } from '@/shared/lib/hooks/use-navigate';
|
||||
|
||||
export const IntroListItem = ({
|
||||
className,
|
||||
serviceName,
|
||||
serviceDesc,
|
||||
icon,
|
||||
path
|
||||
}: IntroListItemProps) => {
|
||||
const { navigate } = useNavigate();
|
||||
|
||||
const onClickToNavigate = () => {
|
||||
if(!!path){
|
||||
navigate(path);
|
||||
}
|
||||
};
|
||||
return (
|
||||
<>
|
||||
<div
|
||||
className={ className }
|
||||
onClick={ () => onClickToNavigate() }
|
||||
>
|
||||
<div>
|
||||
<div className="service-name">{ serviceName }</div>
|
||||
<p className="service-desc">{ serviceDesc }</p>
|
||||
</div>
|
||||
<img
|
||||
src={ icon }
|
||||
alt={ serviceName }
|
||||
/>
|
||||
</div>
|
||||
</>
|
||||
)
|
||||
};
|
||||
@@ -13,7 +13,7 @@ export const LinkPaymentStep1 = ({ formData, setFormData }: LinkPaymentStep1Prop
|
||||
const { navigate } = useNavigate();
|
||||
|
||||
useSetOnBack(() => {
|
||||
navigate(PATHS.additionalService.intro);
|
||||
navigate(PATHS.additionalService.list);
|
||||
});
|
||||
|
||||
const handlePaymentMethodChange = (method: LinkPaymentSendMethod) => {
|
||||
|
||||
Reference in New Issue
Block a user