fix: Unneccessary animation of sidebar on app load
This commit is contained in:
@@ -97,7 +97,10 @@ const AuthenticatedLayout: React.FC = ({ children }) => {
|
|||||||
team?.getPreference(TeamPreference.Commenting);
|
team?.getPreference(TeamPreference.Commenting);
|
||||||
|
|
||||||
const sidebarRight = (
|
const sidebarRight = (
|
||||||
<AnimatePresence>
|
<AnimatePresence
|
||||||
|
initial={false}
|
||||||
|
key={ui.activeDocumentId ? "active" : "inactive"}
|
||||||
|
>
|
||||||
{(showHistory || showInsights || showComments) && (
|
{(showHistory || showInsights || showComments) && (
|
||||||
<Route path={`/doc/${slug}`}>
|
<Route path={`/doc/${slug}`}>
|
||||||
<SidebarRight>
|
<SidebarRight>
|
||||||
|
|||||||
Reference in New Issue
Block a user