|
@@ -7,9 +7,7 @@ import { useSelector } from 'react-redux';
|
|
|
import { RootState } from '@/states/store';
|
|
|
|
|
|
const RegisterAvailableList: React.FC = () => {
|
|
|
- const selected = useSelector(
|
|
|
- (state: RootState) => state.viewSelection.currentSelectionType
|
|
|
- );
|
|
|
+ const selected = useSelector((state: RootState) => state.selection.selected);
|
|
|
// const [bodyPart, setBodyPart] = useState<string | undefined>(undefined);
|
|
|
// const [patientType, setPatientType] = useState<string | undefined>(undefined);
|
|
|
// const [enabled, setEnabled] = useState<string | undefined>(undefined);
|
|
@@ -28,7 +26,7 @@ const RegisterAvailableList: React.FC = () => {
|
|
|
/> */}
|
|
|
{/* 列表区域 */}
|
|
|
<div className="border border-red-300 overflow-auto h-full">
|
|
|
- {selected.selected === 'protocol' ? (
|
|
|
+ {selected === 'protocol' ? (
|
|
|
<ProtocolSelectionList />
|
|
|
) : (
|
|
|
<RegisterViewList />
|