-
+
100%
diff --git a/frontend/app/components/shared/SessionSettings/components/DefaultPlaying.tsx b/frontend/app/components/shared/SessionSettings/components/DefaultPlaying.tsx
index 4ae902d81..6ed635db2 100644
--- a/frontend/app/components/shared/SessionSettings/components/DefaultPlaying.tsx
+++ b/frontend/app/components/shared/SessionSettings/components/DefaultPlaying.tsx
@@ -1,5 +1,5 @@
import React from 'react';
-import { Switch } from 'UI';
+import { Switch } from 'antd';
import { useStore } from 'App/mstore';
import { useObserver } from 'mobx-react-lite';
import { toast } from 'react-toastify';
diff --git a/frontend/app/components/shared/SessionsTabOverview/components/SessionHeader/SessionHeader.tsx b/frontend/app/components/shared/SessionsTabOverview/components/SessionHeader/SessionHeader.tsx
index 2833c58f3..4993cdbe4 100644
--- a/frontend/app/components/shared/SessionsTabOverview/components/SessionHeader/SessionHeader.tsx
+++ b/frontend/app/components/shared/SessionsTabOverview/components/SessionHeader/SessionHeader.tsx
@@ -1,5 +1,4 @@
import React, { useMemo } from 'react';
-import { numberWithCommas } from 'App/utils';
import { applyFilter } from 'Duck/search';
import Period from 'Types/app/period';
import SelectDateRange from 'Shared/SelectDateRange';
@@ -8,7 +7,6 @@ import NoteTags from '../Notes/NoteTags';
import { connect } from 'react-redux';
import SessionSort from '../SessionSort';
import { setActiveTab } from 'Duck/search';
-import SessionSettingButton from '../SessionSettingButton';
interface Props {
listCount: number;
@@ -18,12 +16,13 @@ interface Props {
applyFilter: (filter: any) => void;
setActiveTab: (tab: any) => void;
}
+
function SessionHeader(props: Props) {
const {
filter: { startDate, endDate, rangeValue },
activeTab,
isEnterprise,
- listCount,
+ listCount
} = props;
const period = Period({ start: startDate, end: endDate, rangeName: rangeValue });
@@ -33,7 +32,7 @@ function SessionHeader(props: Props) {
return 'Notes';
}
if (activeTab === 'bookmark') {
- return isEnterprise? 'Vault' : 'Bookmarks';
+ return isEnterprise ? 'Vault' : 'Bookmarks';
}
return 'Sessions';
}, [activeTab]);
@@ -44,29 +43,28 @@ function SessionHeader(props: Props) {
};
return (
-
-
{title}
+
+
{title}
{activeTab !== 'notes' ? (
-
+
{activeTab !== 'bookmark' && (
<>
-
+
{listCount > 0 && (
<>
-
+
>
)}
>
)}
-
) : null}
{activeTab === 'notes' && (
-
+
)}
@@ -79,7 +77,7 @@ export default connect(
filter: state.getIn(['search', 'instance']),
listCount: state.getIn(['sessions', 'total']),
activeTab: state.getIn(['search', 'activeTab', 'type']),
- isEnterprise: state.getIn(['user', 'account', 'edition']) === 'ee',
+ isEnterprise: state.getIn(['user', 'account', 'edition']) === 'ee'
}),
{ applyFilter, setActiveTab }
)(SessionHeader);