Skip to content

Commit

Permalink
Feature/issue 561/fix cursor for non links (#565)
Browse files Browse the repository at this point in the history
* Update history-title-card.tsx

* Update history-title.module.css
  • Loading branch information
VLGrigoryan authored Sep 2, 2024
1 parent 3430dea commit a0e8bf3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/history-page/title/history-title-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ export const HistoryTitleCard = ({ item }: {item: ICard}) => {
type='button'
size='xxl'
border='none'
className={cn({
[style.buttonDefault]: !item.buttonProps,
})}
{...(item.count && item.buttonProps)}
>
{item.count ? item.count.toString() : '0'}
Expand Down
4 changes: 4 additions & 0 deletions src/components/history-page/title/history-title.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@
display: flex;
}

.buttonDefault {
cursor: default;
}

.button.link.subtitle {
overflow: hidden;
padding: 0;
Expand Down

0 comments on commit a0e8bf3

Please sign in to comment.