forked from github/plane
style: sidebar project disclosure list open by default (#1744)
This commit is contained in:
parent
d310b8f86f
commit
8a9ff31009
@ -136,13 +136,7 @@ export const ProjectSidebarList: FC = () => {
|
|||||||
{(provided) => (
|
{(provided) => (
|
||||||
<div ref={provided.innerRef} {...provided.droppableProps}>
|
<div ref={provided.innerRef} {...provided.droppableProps}>
|
||||||
{orderedFavProjects && orderedFavProjects.length > 0 && (
|
{orderedFavProjects && orderedFavProjects.length > 0 && (
|
||||||
<Disclosure
|
<Disclosure as="div" className="flex flex-col space-y-2" defaultOpen={true}>
|
||||||
as="div"
|
|
||||||
className="flex flex-col space-y-2"
|
|
||||||
defaultOpen={
|
|
||||||
projectId && orderedFavProjects.find((p) => p.id === projectId) ? true : false
|
|
||||||
}
|
|
||||||
>
|
|
||||||
{({ open }) => (
|
{({ open }) => (
|
||||||
<>
|
<>
|
||||||
{!sidebarCollapse && (
|
{!sidebarCollapse && (
|
||||||
@ -197,15 +191,7 @@ export const ProjectSidebarList: FC = () => {
|
|||||||
{(provided) => (
|
{(provided) => (
|
||||||
<div ref={provided.innerRef} {...provided.droppableProps}>
|
<div ref={provided.innerRef} {...provided.droppableProps}>
|
||||||
{orderedJoinedProjects && orderedJoinedProjects.length > 0 && (
|
{orderedJoinedProjects && orderedJoinedProjects.length > 0 && (
|
||||||
<Disclosure
|
<Disclosure as="div" className="flex flex-col space-y-2" defaultOpen={true}>
|
||||||
as="div"
|
|
||||||
className="flex flex-col space-y-2"
|
|
||||||
defaultOpen={
|
|
||||||
projectId && orderedJoinedProjects.find((p) => p.id === projectId)
|
|
||||||
? true
|
|
||||||
: false
|
|
||||||
}
|
|
||||||
>
|
|
||||||
{({ open }) => (
|
{({ open }) => (
|
||||||
<>
|
<>
|
||||||
{!sidebarCollapse && (
|
{!sidebarCollapse && (
|
||||||
|
Loading…
Reference in New Issue
Block a user