mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
add missing table body to hotkeys manager
This commit is contained in:
@@ -266,6 +266,7 @@ export const HotkeyManagerSettings = memo(() => {
|
|||||||
/>
|
/>
|
||||||
<div className={styles.container}>
|
<div className={styles.container}>
|
||||||
<Table withColumnBorders withRowBorders>
|
<Table withColumnBorders withRowBorders>
|
||||||
|
<Table.Tbody>
|
||||||
{filteredBindings.map((binding) => (
|
{filteredBindings.map((binding) => (
|
||||||
<Table.Tr key={`hotkey-${binding}`}>
|
<Table.Tr key={`hotkey-${binding}`}>
|
||||||
<Table.Td style={{ userSelect: 'none' }}>
|
<Table.Td style={{ userSelect: 'none' }}>
|
||||||
@@ -301,8 +302,9 @@ export const HotkeyManagerSettings = memo(() => {
|
|||||||
? 0.8
|
? 0.8
|
||||||
: 1,
|
: 1,
|
||||||
outline: duplicateHotkeyMap.includes(
|
outline: duplicateHotkeyMap.includes(
|
||||||
bindings[binding as keyof typeof BINDINGS_MAP]
|
bindings[
|
||||||
.hotkey!,
|
binding as keyof typeof BINDINGS_MAP
|
||||||
|
].hotkey!,
|
||||||
)
|
)
|
||||||
? '1px dashed red'
|
? '1px dashed red'
|
||||||
: undefined,
|
: undefined,
|
||||||
@@ -317,12 +319,14 @@ export const HotkeyManagerSettings = memo(() => {
|
|||||||
<Table.Td>
|
<Table.Td>
|
||||||
<Checkbox
|
<Checkbox
|
||||||
checked={
|
checked={
|
||||||
bindings[binding as keyof typeof BINDINGS_MAP]
|
bindings[
|
||||||
.isGlobal
|
binding as keyof typeof BINDINGS_MAP
|
||||||
|
].isGlobal
|
||||||
}
|
}
|
||||||
disabled={
|
disabled={
|
||||||
bindings[binding as keyof typeof BINDINGS_MAP]
|
bindings[
|
||||||
.hotkey === ''
|
binding as keyof typeof BINDINGS_MAP
|
||||||
|
].hotkey === ''
|
||||||
}
|
}
|
||||||
onChange={(e) =>
|
onChange={(e) =>
|
||||||
handleSetGlobalHotkey(
|
handleSetGlobalHotkey(
|
||||||
@@ -357,6 +361,7 @@ export const HotkeyManagerSettings = memo(() => {
|
|||||||
)}
|
)}
|
||||||
</Table.Tr>
|
</Table.Tr>
|
||||||
))}
|
))}
|
||||||
|
</Table.Tbody>
|
||||||
</Table>
|
</Table>
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
|
|||||||
Reference in New Issue
Block a user