Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Commit

Permalink
Merge pull request #65 from eea/develop
Browse files Browse the repository at this point in the history
check auth token update
  • Loading branch information
andreiggr authored Apr 19, 2022
2 parents ec05a17 + 413db87 commit bebb9c5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,15 @@ All notable changes to this project will be documented in this file. Dates are d

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

#### [0.2.8](https://github.com/eea/volto-forests-theme/compare/0.2.7...0.2.8)

- check auth token update [`2b17de2`](https://github.com/eea/volto-forests-theme/commit/2b17de2b675090ccf3dc91e3f2b289b639ee96b9)

#### [0.2.7](https://github.com/eea/volto-forests-theme/compare/0.2.6...0.2.7)

> 14 April 2022
- Develop [`#64`](https://github.com/eea/volto-forests-theme/pull/64)
- Expandable table improvements [`#63`](https://github.com/eea/volto-forests-theme/pull/63)
- Table markers based on selected lat long from edit [`31181d8`](https://github.com/eea/volto-forests-theme/commit/31181d8d9d0ad5e8c19102517c2d2ce7833259c9)
- Fix crash on no selected columns [`30f2c17`](https://github.com/eea/volto-forests-theme/commit/30f2c17d4200fb0579a6a90efbf4943597f2156b)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eeacms/volto-forests-theme",
"version": "0.2.7",
"version": "0.2.8",
"description": "@eeacms/volto-forests-theme: Volto add-on",
"main": "src/index.js",
"author": "European Environment Agency: IDM2 A-Team",
Expand Down
6 changes: 4 additions & 2 deletions src/components/manage/Blocks/NavigationBlock/View.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import cx from 'classnames';
import { isActive, getNavigationByParent, getBasePath } from './helpers';
import { useEffect } from 'react';
import './styles.css';
import cookie from 'react-cookie';
import { useCookies } from 'react-cookie';
import { Icon } from '@plone/volto/components';
import downIcon from '@plone/volto/icons/down-key.svg';
import closeIcon from '@plone/volto/icons/clear.svg';
Expand All @@ -24,8 +24,10 @@ const View = ({ content, ...props }) => {
const [pages, setPages] = useState([]);
const [isMobile, setIsMobile] = useState(false);
const [expand, setExpand] = useState(false);
// eslint-disable-next-line no-unused-vars
const [cookies, setCookie, removeCookie] = useCookies();

const isLoggedIn = cookie.load('auth_token');
const isLoggedIn = cookies && cookies.auth_token;

const parent =
data?.navFromParent && props.properties?.parent
Expand Down

0 comments on commit bebb9c5

Please sign in to comment.