Skip to content

Commit

Permalink
fix: #65 Change bottom button component
Browse files Browse the repository at this point in the history
Change FixedBottomLinkButton to FixedBottomButton
- edit.tsx
  • Loading branch information
ktmihs committed Jul 6, 2022
1 parent eb34194 commit e53d3bf
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions pages/trainer/[id]/edit.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FixedBottomLinkButton } from '@components/common/button';
import { FixedBottomButton } from '@components/common/button';
import { TitleBar } from '@components/common/title';
import { Edit } from '@components/layout/trainer/edit';
import styled from '@emotion/styled';
Expand Down Expand Up @@ -48,6 +48,8 @@ const TrainerEdit = () => {
alt: '회원탈퇴',
};

const handleButtonClick = () => {};

const Withdraw = styled.div`
position: relative;
width: 73px;
Expand All @@ -72,7 +74,12 @@ const TrainerEdit = () => {
<Withdraw>회원탈퇴</Withdraw>
</Link>
<Edit trainerState={trainerState} trainerSetState={trainerSetState} />
<FixedBottomLinkButton isValid link={`/trainer/${id}`} buttonTitle={'변경 사항 저장'} />
<FixedBottomButton
isValid
onButtonEvent={handleButtonClick}
buttonType={'button'}
buttonTitle={'변경 사항 저장'}
/>
</>
);
};
Expand Down

0 comments on commit e53d3bf

Please sign in to comment.