hide display type toggle if only one available

This commit is contained in:
jeffvli
2025-12-01 19:01:31 -08:00
parent 94ed91f95c
commit 72e7006cc3
@@ -132,6 +132,7 @@ export const ListConfigMenu = (props: ListConfigMenuProps) => {
title={t('common.configure', { postProcess: 'sentenceCase' })} title={t('common.configure', { postProcess: 'sentenceCase' })}
> >
<Stack gap="xs"> <Stack gap="xs">
{availableDisplayTypes.length > 1 && (
<ListConfigTable <ListConfigTable
options={[ options={[
{ {
@@ -156,6 +157,7 @@ export const ListConfigMenu = (props: ListConfigMenuProps) => {
}, },
]} ]}
/> />
)}
<Config displayType={displayType} {...props} /> <Config displayType={displayType} {...props} />
</Stack> </Stack>
</Modal> </Modal>