Skip to content

Commit

Permalink
fix(staking): fix eslint warnings, staking workflow not executing for…
Browse files Browse the repository at this point in the history
… labeled PRs (#531)
  • Loading branch information
refi93 authored Sep 14, 2023
1 parent b264f28 commit 7190267
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/packages-staking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ name: packages/staking

on:
pull_request:
types: [synchronize, labeled]
push:
branches:
- main
Expand Down
6 changes: 5 additions & 1 deletion packages/staking/src/features/overview/FundWalletBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,11 @@ export const FundWalletBanner = ({
const boundingBox = useBoundingBox(container);

return (
<div data-testid="fund-wallet-banner" ref={setContainer as any} className={styles.fundWalletBanner}>
<div
data-testid="fund-wallet-banner"
ref={setContainer as React.LegacyRef<HTMLDivElement>}
className={styles.fundWalletBanner}
>
{boundingBox && boundingBox?.width > smallScreenSizeInPx ? (
<>{largeSizeScreenContent}</>
) : (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const StakeFundsBanner = ({ balance, popupView }: props): React.ReactElem
const { walletStoreWalletUICardanoCoin } = useOutsideHandles();
const { t } = useTranslation();
return (
<div className={cn(styles.container, { [styles.popupView as any]: popupView })}>
<div className={cn(styles.container, { [styles.popupView as string]: popupView })}>
{popupView ? <BgImgPopup className={styles.bg} /> : <BgImg className={styles.bg} />}
<div className={styles.content}>
<div className={styles.title}>{t('overview.noStaking.title')}</div>
Expand Down

0 comments on commit 7190267

Please sign in to comment.