mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +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' })}
|
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>
|
||||||
|
|||||||
Reference in New Issue
Block a user