refactor: Tabs component

This commit is contained in:
codytseng 2025-07-02 22:52:04 +08:00
parent 2489e8098d
commit 00bb3c712b
5 changed files with 82 additions and 72 deletions

View file

@ -13,7 +13,7 @@ import { Event, kinds } from 'nostr-tools'
import { forwardRef, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react'
import { useTranslation } from 'react-i18next'
import PullToRefresh from 'react-simple-pull-to-refresh'
import TabSwitcher from '../TabSwitch'
import Tabs from '../Tabs'
import { NotificationItem } from './NotificationItem'
const LIMIT = 100
@ -195,7 +195,7 @@ const NotificationList = forwardRef((_, ref) => {
return (
<div>
<TabSwitcher
<Tabs
value={notificationType}
tabs={[
{ value: 'all', label: 'All' },