Skip to content

Commit

Permalink
don't connect component to store
Browse files Browse the repository at this point in the history
  • Loading branch information
nileshgulia1 committed Mar 22, 2022
1 parent ea156aa commit 470b8ba
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/ui/Header/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import React from 'react'; // , { Component }
import cx from 'classnames';
import { useSelector } from 'react-redux';
import { Container, Image, Menu, Grid, Dropdown } from 'semantic-ui-react'; // Dropdown,

import closeIcon from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/images/Header/close-line.svg';
Expand Down Expand Up @@ -38,9 +37,8 @@ const TopDropdownMenu = ({
id,
mobileText,
text,
width,
}) => {
const width = useSelector((state) => state.screen?.width);

const isMobile = width < 480;

const Component = ({ mobileText }) => (
Expand Down

0 comments on commit 470b8ba

Please sign in to comment.