Skip to content

Commit 115c480

Browse files
committed
fix: fix the alignment of breadcrumb and funnel actions
1 parent e14254f commit 115c480

File tree

4 files changed

+21
-21
lines changed

4 files changed

+21
-21
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import axios from 'api';
2+
import { ApiResponse } from 'types/api';
3+
import { FeatureFlagProps } from 'types/api/features/getFeaturesFlags';
4+
5+
const getFeaturesFlags = (): Promise<FeatureFlagProps[]> =>
6+
axios
7+
.get<ApiResponse<FeatureFlagProps[]>>(`/featureFlags`)
8+
.then((response) => response.data.data);
9+
10+
export default getFeaturesFlags;
Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,18 @@
1-
import list from 'api/v1/features/list';
1+
import getFeaturesFlags from 'api/features/getFeatureFlags';
22
import { REACT_QUERY_KEY } from 'constants/reactQueryKeys';
33
import { useQuery, UseQueryResult } from 'react-query';
4-
import { SuccessResponseV2 } from 'types/api';
5-
import APIError from 'types/api/error';
64
import { FeatureFlagProps } from 'types/api/features/getFeaturesFlags';
75

8-
export interface Props {
9-
onSuccessHandler: (routes: FeatureFlagProps[]) => void;
10-
isLoggedIn: boolean;
11-
}
12-
type UseGetFeatureFlag = UseQueryResult<
13-
SuccessResponseV2<FeatureFlagProps[]>,
14-
APIError
15-
>;
16-
17-
export const useGetFeatureFlag = (
6+
const useGetFeatureFlag = (
187
onSuccessHandler: (routes: FeatureFlagProps[]) => void,
198
isLoggedIn: boolean,
20-
): UseGetFeatureFlag =>
21-
useQuery<SuccessResponseV2<FeatureFlagProps[]>, APIError>({
9+
): UseQueryResult<FeatureFlagProps[], unknown> =>
10+
useQuery<FeatureFlagProps[]>({
11+
queryFn: getFeaturesFlags,
2212
queryKey: [REACT_QUERY_KEY.GET_FEATURES_FLAGS],
23-
queryFn: () => list(),
24-
onSuccess: (data) => {
25-
onSuccessHandler(data.data);
26-
},
13+
onSuccess: onSuccessHandler,
2714
retryOnMount: false,
2815
enabled: !!isLoggedIn,
2916
});
17+
18+
export default useGetFeatureFlag;

frontend/src/pages/TracesFunnelDetails/components/FunnelConfiguration/FunnelConfiguration.styles.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313

1414
&__header {
1515
display: flex;
16-
justify-content: flex-start;
16+
align-items: center;
17+
justify-content: space-between;
1718
padding: 14px 16px;
1819
border-bottom: 1px solid var(--bg-slate-400);
1920
&-right {

frontend/src/providers/App/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import getUserVersion from 'api/v1/version/getVersion';
55
import { LOCALSTORAGE } from 'constants/localStorage';
66
import dayjs from 'dayjs';
77
import useActiveLicenseV3 from 'hooks/useActiveLicenseV3/useActiveLicenseV3';
8-
import { useGetFeatureFlag } from 'hooks/useGetFeatureFlag';
8+
import useGetFeatureFlag from 'hooks/useGetFeatureFlag';
99
import { useGlobalEventListener } from 'hooks/useGlobalEventListener';
1010
import useGetUser from 'hooks/user/useGetUser';
1111
import {

0 commit comments

Comments
 (0)