fix: remove settings option from stream-view (#277)
* remove settings option * remove unused var
This commit was merged in pull request #277.
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
import { useNavigate } from 'react-router-dom';
|
|
||||||
import { useAuthStore } from '@/stores/auth-store';
|
import { useAuthStore } from '@/stores/auth-store';
|
||||||
import { apiClient } from '@/api/client';
|
import { apiClient } from '@/api/client';
|
||||||
import { isParticleDeleted, type Particle } from '@/api/types';
|
import { isParticleDeleted, type Particle } from '@/api/types';
|
||||||
@@ -20,7 +19,6 @@ import {
|
|||||||
DropdownMenuTrigger,
|
DropdownMenuTrigger,
|
||||||
} from '@/components/ui/dropdown-menu';
|
} from '@/components/ui/dropdown-menu';
|
||||||
import {
|
import {
|
||||||
Settings,
|
|
||||||
CircleCheckBig,
|
CircleCheckBig,
|
||||||
CircleDot,
|
CircleDot,
|
||||||
EllipsisVertical,
|
EllipsisVertical,
|
||||||
@@ -73,7 +71,6 @@ interface TopBarProps {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function TopBar({ networkId, particle, streamParticle }: TopBarProps) {
|
export function TopBar({ networkId, particle, streamParticle }: TopBarProps) {
|
||||||
const navigate = useNavigate();
|
|
||||||
const network = useNetwork(networkId);
|
const network = useNetwork(networkId);
|
||||||
const userId = useAuthStore((s) => s.user?.id);
|
const userId = useAuthStore((s) => s.user?.id);
|
||||||
const isCreator = !!userId && userId === streamParticle.created_by_human_id;
|
const isCreator = !!userId && userId === streamParticle.created_by_human_id;
|
||||||
@@ -226,10 +223,6 @@ export function TopBar({ networkId, particle, streamParticle }: TopBarProps) {
|
|||||||
Delete particle
|
Delete particle
|
||||||
</DropdownMenuItem>
|
</DropdownMenuItem>
|
||||||
)}
|
)}
|
||||||
<DropdownMenuItem onSelect={() => navigate('/settings')}>
|
|
||||||
<Settings className="size-4" />
|
|
||||||
Settings
|
|
||||||
</DropdownMenuItem>
|
|
||||||
</DropdownMenuContent>
|
</DropdownMenuContent>
|
||||||
</DropdownMenu>
|
</DropdownMenu>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user