Skip to content

Commit

Permalink
only render welcome card on native app
Browse files Browse the repository at this point in the history
  • Loading branch information
alecananian committed Nov 20, 2023
1 parent 804b687 commit 86c5a1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/src/nav/MobileRoot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import AddIconMobileNav from '@/components/icons/AddIconMobileNav';
import MagnifyingGlass16Icon from '@/components/icons/MagnifyingGlass16Icon';
import GroupJoinList from '@/groups/GroupJoinList';
import WelcomeCard from '@/components/WelcomeCard';
import { isNativeApp } from '@/logic/native';

export default function MobileRoot() {
const [isScrolling, setIsScrolling] = useState(false);
Expand Down Expand Up @@ -75,7 +76,7 @@ export default function MobileRoot() {
}
>
<nav className="flex h-full flex-1 flex-col overflow-y-auto overflow-x-hidden">
<WelcomeCard />
{isNativeApp() ? <WelcomeCard /> : null}
<div className="flex-1">
{sortedGroups.length === 0 && !isLoading ? (
<div className="mx-4 my-2 rounded-lg bg-indigo-50 p-4 leading-5 text-gray-700 dark:bg-indigo-900/50">
Expand Down

0 comments on commit 86c5a1a

Please sign in to comment.