Skip to content

Commit

Permalink
Web: Files: Badges: Renamed handleClick to onClick
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-kulak committed Jan 24, 2022
1 parent ec47211 commit eb6573b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions products/ASC.Files/Client/src/components/Badges.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const StyledWrapper = styled.div`
box-shadow: 0px 2px 4px rgba(4, 15, 27, 0.16);
`;

const VersionBadgeWrapper = ({ handleClick, isTile, children: badge }) => {
const VersionBadgeWrapper = ({ onClick, isTile, children: badge }) => {
if (!isTile) return badge;

const [isHovered, setIsHovered] = useState(false);
Expand All @@ -36,7 +36,7 @@ const VersionBadgeWrapper = ({ handleClick, isTile, children: badge }) => {

return (
<StyledWrapper
onClick={handleClick}
onClick={onClick}
onMouseEnter={onMouseEnter}
onMouseLeave={onMouseLeave}
>
Expand Down Expand Up @@ -136,7 +136,7 @@ const Badges = ({
/>
)}
{version > 1 && (
<VersionBadgeWrapper handleClick={onShowVersionHistory} isTile={isTile}>
<VersionBadgeWrapper onClick={onShowVersionHistory} isTile={isTile}>
<Badge
className="badge-version badge-version-current tablet-badge icons-group"
backgroundColor="#A3A9AE"
Expand All @@ -154,7 +154,7 @@ const Badges = ({
</VersionBadgeWrapper>
)}
{(showNew || isNewWithFav) && (
<VersionBadgeWrapper handleClick={onBadgeClick} isTile={isTile}>
<VersionBadgeWrapper onClick={onBadgeClick} isTile={isTile}>
<Badge
className="badge-version badge-new-version tablet-badge icons-group"
backgroundColor="#ED7309"
Expand Down

0 comments on commit eb6573b

Please sign in to comment.