refactor: simplify ListStatus rendering in IndexStatus component

This commit is contained in:
2025-10-23 11:55:28 +07:00
parent 1189115359
commit 3a057f7ef0

View File

@@ -64,7 +64,6 @@ const IndexStatus = memo(function IndexStatus() {
return (
<React.Fragment>
{actionMode === 'list' && (
<ListStatus
actionMode={actionMode}
setActionMode={setMode}
@@ -72,7 +71,7 @@ const IndexStatus = memo(function IndexStatus() {
setSelectedData={setSelectedData}
readOnly={readOnly}
/>
)}
<DetailStatus
setActionMode={setMode}
selectedData={selectedData}