File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
apps/service/src/components/common Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { IcHome, IcLeft } from '@svg';
66
77interface HeaderProps {
88 title : string ;
9- iconType ?: 'home' | 'back' ;
9+ iconType ?: 'home' | 'back' | 'none' ;
1010}
1111
1212const Header = ( { title, iconType = 'home' } : HeaderProps ) => {
@@ -22,6 +22,7 @@ const Header = ({ title, iconType = 'home' }: HeaderProps) => {
2222 < div className = 'flex w-1/6 cursor-pointer items-center' >
2323 { iconType === 'home' && < IcHome width = { 24 } height = { 24 } onClick = { handleClickHome } /> }
2424 { iconType === 'back' && < IcLeft width = { 24 } height = { 24 } onClick = { ( ) => router . back ( ) } /> }
25+ { iconType === 'none' && < div className = 'h-6 w-6' /> }
2526 </ div >
2627
2728 < h1 className = 'font-bold-16 flex w-2/3 items-center justify-center text-black' > { title } </ h1 >
You can’t perform that action at this time.
0 commit comments