Skip to content

Commit

Permalink
Merge pull request #3426 from tloncorp/lb/group-header-meta
Browse files Browse the repository at this point in the history
desktop: fix missing groups sidebar metadata
  • Loading branch information
latter-bolden committed Apr 17, 2024
2 parents 20ccf95 + ac83198 commit 8cf4484
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions apps/tlon-web/src/app.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright 2022, Tlon Corporation
import { TooltipProvider } from '@radix-ui/react-tooltip';
import { TamaguiProvider, config } from '@tloncorp/ui';
import '@tloncorp/ui/src/tamagui.d.ts';
import cookies from 'browser-cookies';
import { usePostHog } from 'posthog-js/react';
import React, { Suspense, useEffect, useMemo, useState } from 'react';
Expand Down
6 changes: 6 additions & 0 deletions apps/tlon-web/src/groups/GroupSidebar/GroupSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ function GroupHeader() {
const calm = useCalm();
const isDark = useIsDark();

useEffect(() => {
if (realGroup) {
lastGroupRef.current = realGroup;
}
}, [realGroup]);

const bgStyle = useCallback(() => {
if (
group &&
Expand Down
3 changes: 1 addition & 2 deletions apps/tlon-web/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
"vite/client",
"vitest/globals",
"@testing-library/jest-dom",
"vite-plugin-pwa/react",
"../../packages/ui/src/tamagui.d.ts"
"vite-plugin-pwa/react"
],
"paths": {
"@/*": ["./src/*"]
Expand Down

0 comments on commit 8cf4484

Please sign in to comment.