Open joepio opened 1 year ago
probably forgot to wrap it sometime ago during a refactor
}
if (resource.error) {
return (
<SideBarItem
onClick={handleClose}
disabled={active}
resource={subject}
ref={spanRef}
>
<ErrorLook about={subject} title={resource.error.message}>
{subject}
</ErrorLook>
</SideBarItem>
);
}
return (
<Details
initialState={open}
open={open}
disabled={!hasSubResources}
onStateToggle={handleDetailsToggle}
data-test='resource-sidebar'
title={
<ActionWrapper>
<Title subject={subject} clean active={active}>
<SideBarItem
onClick={handleClose}
disabled={active}
resource={subject}
title={description}
ref={spanRef}
Clicking should navigate to err resource