mirror of
https://github.com/Nezumi-2711/react-training.git
synced 2026-09-22 20:01:59 +00:00
Optimized performance and fix type of object not correctly
This commit is contained in:
@@ -71,8 +71,8 @@ const RoomRow = ({
|
||||
|
||||
// prettier-ignore
|
||||
const statusText = status
|
||||
? 'Valid'
|
||||
: 'Invalid';
|
||||
? 'Invalid'
|
||||
: 'Valid';
|
||||
|
||||
return (
|
||||
<Table.Row>
|
||||
@@ -84,9 +84,9 @@ const RoomRow = ({
|
||||
<div>{statusText}</div>
|
||||
|
||||
<Menus.Menu>
|
||||
<Menus.Toggle id={id} />
|
||||
<Menus.Toggle id={id.toString()} />
|
||||
|
||||
<Menus.List id={id}>
|
||||
<Menus.List id={id.toString()}>
|
||||
<Menus.Button
|
||||
icon={<HiSquare2Stack />}
|
||||
onClick={() => handleOnEdit(room)}
|
||||
|
||||
Reference in New Issue
Block a user