Skip to content

Commit

Permalink
eslint: Resolve errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sashko9807 committed Nov 13, 2023
1 parent 73199dc commit 488ffa9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/components/admin/recurring-donation/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ export default function EditForm() {
company: data?.person?.company,
newsletter: data?.person?.newsletter,
emailConfirmed: data?.person?.emailConfirmed,
profileEnabled: data?.person?.profileEnabled,
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/components/client/campaigns/InlineDonation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ type Props = {
export default function InlineDonation({ campaign }: Props) {
const { t } = useTranslation('campaigns')
const { asPath } = useRouter()
const [status, copyUrl] = useCopyToClipboard(baseUrl + asPath, 1000)
const [status, copyUrl] = useCopyToClipboard(1000)
const [subscribeIsOpen, setSubscribeOpen] = useState(false)
const active = status === 'copied' ? 'inherit' : 'primary'
const [page, setPage] = useState<number>(0)
Expand Down Expand Up @@ -422,7 +422,7 @@ export default function InlineDonation({ campaign }: Props) {
label="Копирайте връзка към кампанията"
onClick={() => {
AlertStore.show(t('common:alerts.message-copy'), 'success')
copyUrl()
copyUrl(baseUrl + asPath)
}}
color={active}
/>
Expand Down

0 comments on commit 488ffa9

Please sign in to comment.