Skip to content

Commit

Permalink
fix(chor): fix sonar cloud issue
Browse files Browse the repository at this point in the history
  • Loading branch information
manojava-gk committed Jun 3, 2024
1 parent c7ca009 commit cb8ed2b
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions src/components/basic/Button/ScrollToTopButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,19 @@ import { IconButton } from '../IconButton'
import ArrowUpwardIcon from '@mui/icons-material/ArrowUpward'

export interface ScrollToTopButtonProps {
onButtonClick: React.MouseEventHandler
onButtonClick: React.MouseEventHandler
}

export const ScrollToTopButton = ({
onButtonClick,
onButtonClick,
}: ScrollToTopButtonProps) => {
return (
<>

<IconButton
color="secondary"
onClick={onButtonClick}
sx={{ position: 'fixed', right: '40px', bottom: '20px' }}
>
<ArrowUpwardIcon />
</IconButton>
</>
)
return (
<IconButton
color="secondary"
onClick={onButtonClick}
sx={{ position: 'fixed', right: '40px', bottom: '20px' }}
>
<ArrowUpwardIcon />
</IconButton>
)
}

0 comments on commit cb8ed2b

Please sign in to comment.