blur phone call history if on free plan

This commit is contained in:
m5r
2021-10-19 23:56:16 +02:00
parent fd003f461b
commit 59b13bd0ea
5 changed files with 61 additions and 7 deletions

View File

@ -7,8 +7,10 @@ import PhoneInitLoader from "app/core/components/phone-init-loader";
import EmptyCalls from "../components/empty-calls";
import usePhoneCalls from "../hooks/use-phone-calls";
import { formatRelativeDate } from "app/core/helpers/date-formatter";
import useCurrentUser from "app/core/hooks/use-current-user";
export default function PhoneCallsList() {
const { hasActiveSubscription } = useCurrentUser();
const [phoneCalls, query] = usePhoneCalls();
useEffect(() => {
@ -23,7 +25,7 @@ export default function PhoneCallsList() {
}
if (phoneCalls.length === 0) {
return <EmptyCalls />;
return hasActiveSubscription ? <EmptyCalls /> : null;
}
return (