diff --git a/app/_components/dropdown-menu.tsx b/app/_components/dropdown-menu.tsx index 100eabde..60dd917c 100644 --- a/app/_components/dropdown-menu.tsx +++ b/app/_components/dropdown-menu.tsx @@ -1,7 +1,6 @@ 'use client'; import ButtonPrimitive from '@/_components/button'; -import ForwardSearchParamsButtonPrimitive from '@/_components/forward-search-params-button'; import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu'; import { DropdownMenuProps } from '@radix-ui/react-dropdown-menu'; import * as React from 'react'; @@ -36,17 +35,6 @@ const Content = React.forwardRef< Content.displayName = DropdownMenuPrimitive.Content.displayName; -const ForwardSearchParamsButton = React.forwardRef< - React.ElementRef, - React.ComponentPropsWithoutRef ->((props, ref) => ( - - - -)); - -ForwardSearchParamsButton.displayName = 'ForwardSearchParamsButton'; - const Item = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef @@ -110,14 +98,4 @@ const Trigger = React.forwardRef< Trigger.displayName = DropdownMenuPrimitive.Trigger.displayName; -export { - Button, - Content, - ForwardSearchParamsButton, - Item, - Label, - Portal, - Root, - Separator, - Trigger, -}; +export { Button, Content, Item, Label, Portal, Root, Separator, Trigger }; diff --git a/app/_components/forward-search-params-button.tsx b/app/_components/forward-search-params-button.tsx deleted file mode 100644 index d8493da2..00000000 --- a/app/_components/forward-search-params-button.tsx +++ /dev/null @@ -1,10 +0,0 @@ -'use client'; - -import Button, { ButtonProps } from '@/_components/button'; -import useForwardSearchString from '@/_hooks/use-forward-search-string'; - -const ForwardSearchParamsButton = ({ href, ...rest }: ButtonProps) => ( - } title={trainingPlan.name} /> diff --git a/app/_components/sessions-page.tsx b/app/_components/sessions-page.tsx index 370cb507..1ab265db 100644 --- a/app/_components/sessions-page.tsx +++ b/app/_components/sessions-page.tsx @@ -109,7 +109,7 @@ const SessionsPage = async ({ > {!!events?.length ? (
-
-
Recorded by
+
+
Recorded by
-
-
Completed by
+
+
Completed by
{ - const searchParams = useSearchParams(); - if (searchParams.get('fromSessions')) return null; - const shareOrSubjects = isPublic ? 'share' : 'subjects'; - - return ( - - ); -}; - -export default ViewAllSessionsButton;