mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-04-20 14:38:58 -04:00
add more tooltips
This commit is contained in:
@@ -8,6 +8,7 @@ import { CogIcon } from 'react-native-heroicons/solid';
|
||||
import Layout from '../../constants/Layout';
|
||||
import tw from '../../lib/tailwind';
|
||||
import CollapsibleView from '../layout/CollapsibleView';
|
||||
import { Tooltip } from '../tooltip/Tooltip';
|
||||
import DrawerLocationItem from './DrawerLocationItem';
|
||||
import DrawerLogo from './DrawerLogo';
|
||||
import DrawerTagItem from './DrawerTagItem';
|
||||
@@ -107,9 +108,11 @@ const DrawerContent = ({ navigation, state }: DrawerContentComponentProps) => {
|
||||
</CollapsibleView>
|
||||
</View>
|
||||
{/* Settings */}
|
||||
<Pressable onPress={() => navigation.navigate('Settings')}>
|
||||
<CogIcon color="white" size={24} />
|
||||
</Pressable>
|
||||
<Tooltip label="Settings">
|
||||
<Pressable onPress={() => navigation.navigate('Settings')}>
|
||||
<CogIcon color="white" size={24} />
|
||||
</Pressable>
|
||||
</Tooltip>
|
||||
</View>
|
||||
</DrawerContentScrollView>
|
||||
);
|
||||
|
||||
@@ -127,8 +127,12 @@ export const TopBar: React.FC<TopBarProps> = (props) => {
|
||||
className="flex h-[2.95rem] -mt-0.5 max-w z-10 pl-3 flex-shrink-0 items-center border-b dark:bg-gray-600 border-gray-100 dark:border-gray-800 !bg-opacity-90 backdrop-blur"
|
||||
>
|
||||
<div className="flex ">
|
||||
<TopBarButton icon={ChevronLeftIcon} onClick={() => navigate(-1)} />
|
||||
<TopBarButton icon={ChevronRightIcon} onClick={() => navigate(1)} />
|
||||
<Tooltip label="Navigate back">
|
||||
<TopBarButton icon={ChevronLeftIcon} onClick={() => navigate(-1)} />
|
||||
</Tooltip>
|
||||
<Tooltip label="Navigate forward">
|
||||
<TopBarButton icon={ChevronRightIcon} onClick={() => navigate(1)} />
|
||||
</Tooltip>
|
||||
</div>
|
||||
|
||||
{/* <div className="flex mx-8 space-x-[1px]">
|
||||
|
||||
Reference in New Issue
Block a user