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);
|
||||
|
||||
const sidebarRight = (
|
||||
<AnimatePresence>
|
||||
<AnimatePresence
|
||||
initial={false}
|
||||
key={ui.activeDocumentId ? "active" : "inactive"}
|
||||
>
|
||||
{(showHistory || showInsights || showComments) && (
|
||||
<Route path={`/doc/${slug}`}>
|
||||
<SidebarRight>
|
||||
|
||||
Reference in New Issue
Block a user