atomicdata-dev / atomic-data-browser

This repo is no longer used! Code is moved to Atomic-Server
https://github.com/atomicdata-dev/atomic-server/issues
MIT License
55 stars 9 forks source link

ResourceSideBar error state not clickable #240

Open joepio opened 1 year ago

joepio commented 1 year ago

Clicking should navigate to err resource

Screenshot 2022-10-10 at 16 23 39
joepio commented 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}