Always show settings dropdown

This commit is contained in:
Gregory Schier
2023-11-22 09:39:30 -08:00
parent 43706009a2
commit 9e31bbcfa3
2 changed files with 4 additions and 23 deletions

View File

@@ -8,13 +8,9 @@ import { useUpdateMode } from '../hooks/useUpdateMode';
import type { DropdownProps, DropdownRef } from './core/Dropdown';
import { Dropdown } from './core/Dropdown';
import { Icon } from './core/Icon';
import { IconButton } from './core/IconButton';
interface Props {
requestId: string | null;
children: DropdownProps['children'];
}
export function SettingsDropdown({ requestId, children }: Props) {
export function SettingsDropdown() {
const importData = useImportData();
const exportData = useExportData();
const { appearance, toggleAppearance } = useTheme();
@@ -22,10 +18,6 @@ export function SettingsDropdown({ requestId, children }: Props) {
const [updateMode, setUpdateMode] = useUpdateMode();
const dropdownRef = useRef<DropdownRef>(null);
if (requestId == null) {
return null;
}
return (
<Dropdown
ref={dropdownRef}
@@ -63,7 +55,7 @@ export function SettingsDropdown({ requestId, children }: Props) {
},
]}
>
{children}
<IconButton size="sm" title="Request Options" icon="gear" className="pointer-events-auto" />
</Dropdown>
);
}