Skip to content

Commit

Permalink
Merge pull request #763 from ensdomains/remove-bankless-reminder
Browse files Browse the repository at this point in the history
Temporarily remove bankless reminders
  • Loading branch information
LeonmanRolls authored Jul 17, 2024
2 parents 5424467 + 3eff926 commit a2e6570
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { describe, expect, it, vi } from 'vitest'

import { GRACE_PERIOD } from '@app/utils/constants'

import { ExpirySection } from './ExpirySection'
import { makeMockIntersectionObserver } from '../../../../../../../../../test/mock/makeMockIntersectionObserver'
import { ExpirySection } from './ExpirySection'

vi.mock('./hooks/useExpiryDetails', () => ({
useExpiryDetails: ({ name }: any) => {
Expand Down Expand Up @@ -49,7 +49,7 @@ vi.mock('./hooks/useExpiryActions', () => ({
makeMockIntersectionObserver()

describe('ExpirySection', () => {
it('should be able to open earnify button modal', async () => {
it.skip('should be able to open earnify button modal', async () => {
render(<ExpirySection name="test.eth" details={{} as any} />)
expect(screen.getByText('action.setReminder')).toBeVisible()
expect(screen.getByText('action.extend')).toBeVisible()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,14 @@ export const ExpirySection = ({ name, details }: Props) => {
keepMenuOnTop
width={220}
items={[
{
value: 'earnifi',
label: t('tabs.more.misc.reminderOptions.bankless'),
onClick: () => {
setShowEarnifiDialog(true)
},
},
// Put this back once the reminders are working again
// {
// value: 'earnifi',
// label: t('tabs.more.misc.reminderOptions.bankless'),
// onClick: () => {
// setShowEarnifiDialog(true)
// },
// },
...calendarOptions.map((option) => ({
label: t(option.label, { ns: 'profile' }),
onClick: () =>
Expand Down

0 comments on commit a2e6570

Please sign in to comment.