mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-23 20:37:42 +02:00
hide display type toggle if only one available
This commit is contained in:
@@ -132,6 +132,7 @@ export const ListConfigMenu = (props: ListConfigMenuProps) => {
|
||||
title={t('common.configure', { postProcess: 'sentenceCase' })}
|
||||
>
|
||||
<Stack gap="xs">
|
||||
{availableDisplayTypes.length > 1 && (
|
||||
<ListConfigTable
|
||||
options={[
|
||||
{
|
||||
@@ -156,6 +157,7 @@ export const ListConfigMenu = (props: ListConfigMenuProps) => {
|
||||
},
|
||||
]}
|
||||
/>
|
||||
)}
|
||||
<Config displayType={displayType} {...props} />
|
||||
</Stack>
|
||||
</Modal>
|
||||
|
||||
Reference in New Issue
Block a user