diff --git a/src/components/pages/events/eventAdmin/EventAdmin.tsx b/src/components/pages/events/eventAdmin/EventAdmin.tsx index ad4cbc5e..81f136e2 100644 --- a/src/components/pages/events/eventAdmin/EventAdmin.tsx +++ b/src/components/pages/events/eventAdmin/EventAdmin.tsx @@ -11,6 +11,8 @@ import useFetchUpdate from 'hooks/useFetchUpdate'; import { SideBarItem } from 'components/pages/admin/AdminPage'; import DropdownMenu from 'components/molecules/dropdownMenu/DropdownMenu'; import { useMobileScreen } from 'hooks/useMobileScreen'; +import { Flex } from '@chakra-ui/react'; +import EventViewCount from 'components/molecules/event/eventViewCount/EventViewCount'; export interface IValidEvent { eventData: Event | undefined; } @@ -84,7 +86,7 @@ interface componentsDict { [key: string]: JSX.Element; } -const EventAdmin: React.FC<{ eventData: Event }> = ({ eventData }) => { +const EventAdmin = () => { const [isValid, setIsValid] = useState(); const [event, setEvent] = useState(); const { id } = useParams<{ id: string }>(); @@ -156,28 +158,35 @@ const EventAdmin: React.FC<{ eventData: Event }> = ({ eventData }) => { return (
{!isMobile ? ( -
- setComponentKey('Settings')} - iconType="cog" - label="Settings" - /> - setComponentKey('Responses')} - iconType="poll" - label="Responses" - /> - setComponentKey('Statistics')} - iconType="chart-line" - label="Statistics" - /> - setComponentKey('Export')} - iconType="file-export" - label="Export" - /> -
+ +
+ setComponentKey('Settings')} + iconType="cog" + label="Settings" + /> + setComponentKey('Responses')} + iconType="poll" + label="Responses" + /> + setComponentKey('Statistics')} + iconType="chart-line" + label="Statistics" + /> + setComponentKey('Export')} + iconType="file-export" + label="Export" + /> +
+ {event !== undefined && ( + + + + )} +
) : (