Skip to content

Commit

Permalink
Only show Suggestions Table on Curations Overview when Suggestions ar…
Browse files Browse the repository at this point in the history
…e enabled
  • Loading branch information
byronhulcher committed Oct 20, 2021
1 parent 436ed1f commit 4216aae
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,17 @@ import { CurationsTable, EmptyState } from '../components';
import { SuggestionsTable } from '../components/suggestions_table';
import { CurationsLogic } from '../curations_logic';

import { CurationsSettingsLogic } from './curations_settings';

export const CurationsOverview: React.FC = () => {
const { curations } = useValues(CurationsLogic);
const { hasPlatinumLicense } = useValues(LicensingLogic);

const shouldShowSuggestions = hasPlatinumLicense;
const {
curationsSettings: { enabled },
} = useValues(CurationsSettingsLogic);

const shouldShowSuggestions = enabled && hasPlatinumLicense;

return (
<>
Expand Down

0 comments on commit 4216aae

Please sign in to comment.