mirror of https://github.com/buster-so/buster.git
Merge branch 'big-nate/bus-939-create-new-structure-for-chats' into evals
This commit is contained in:
commit
7b393e5d6e
|
@ -30,7 +30,7 @@ export const listMetrics_server = async (params: ListMetricsParams) => {
|
|||
};
|
||||
|
||||
export const getMetricData = async ({ id }: { id: string }) => {
|
||||
return mainApi.get<BusterMetricData>(`/metrics/data/${id}`).then((res) => res.data);
|
||||
return mainApi.get<BusterMetricData>(`/metrics/${id}/data`).then((res) => res.data);
|
||||
};
|
||||
|
||||
export const updateMetric = async (params: UpdateMetricParams) => {
|
||||
|
|
|
@ -17,6 +17,7 @@ import { useAppLayoutContextSelector } from '@/context/BusterAppLayout';
|
|||
import { SupportModal } from '../modal/SupportModal';
|
||||
import { InvitePeopleModal } from '../modal/InvitePeopleModal';
|
||||
import { useMemoizedFn } from '@/hooks';
|
||||
import { SidebarUserFooter } from './SidebarUserFooter/SidebarUserFooter';
|
||||
|
||||
const topItems: ISidebarList = {
|
||||
items: [
|
||||
|
@ -130,7 +131,12 @@ export const SidebarPrimary = React.memo(() => {
|
|||
|
||||
return (
|
||||
<>
|
||||
<Sidebar content={sidebarItems} header={<SidebarPrimaryHeader />} activeItem={currentRoute} />
|
||||
<Sidebar
|
||||
content={sidebarItems}
|
||||
header={<SidebarPrimaryHeader />}
|
||||
activeItem={currentRoute}
|
||||
footer={<SidebarUserFooter />}
|
||||
/>
|
||||
|
||||
<GlobalModals />
|
||||
</>
|
||||
|
|
Loading…
Reference in New Issue