mirror of
https://github.com/luxfi/safe-wallet.git
synced 2026-10-30 15:19:21 +00:00
* feat: install necessary packages for sortable functionallity * chore: move active chain information to be under activeSafe to avoid duplicated source of truth and better and domain centralization * feat: allow safeList consumer to remove the horizontal padding if he/she/they wants * feat: add edit accounts functionality * fix: unit tests * fix: improve seperation of concern between sortable and edit/remove accounts * fix: improve code readability * fix: generated yarn.lock * feat: cover Assets feature with unit tests * chore: improve test reliability * fix: remove inline style * fix: use selectors and dispatch from useApp hooks * fix: lint * feat: cover NFTs container * chore: cover my accounts functionality with unit tests * fix: AccountItem lint
26 lines
681 B
TypeScript
26 lines
681 B
TypeScript
import React from 'react'
|
|
import { View, FlatList } from 'react-native'
|
|
|
|
export const Tabs = {
|
|
Container: ({ children, renderTabBar }) => (
|
|
<View>
|
|
{renderTabBar && renderTabBar({ index: 0, routes: [] })}
|
|
{children}
|
|
</View>
|
|
),
|
|
Tab: ({ children }: { children: React.ReactNode }) => <View>{children}</View>,
|
|
FlashList: FlatList,
|
|
FlatList: FlatList,
|
|
useTabsContext: () => ({
|
|
focusedTab: '',
|
|
tabNames: [],
|
|
index: 0,
|
|
routes: [],
|
|
jumpTo: jest.fn(),
|
|
}),
|
|
useTabNameContext: () => ({ tabName: 'Tokens' }),
|
|
ScrollView: ({ children }: { children: React.ReactNode }) => <View testID="fallback">{children}</View>,
|
|
}
|
|
|
|
export default Tabs
|