fast forward branch to be on par with master. clean up useless comments in permissionsSettings

pull/1344/head
joseph izang 3 years ago
parent ed326fdf36
commit d72b8526a2
  1. 4
      libs/remix-ui/plugin-manager/src/lib/components/permissionsSettings.tsx

@ -1,5 +1,5 @@
/* eslint-disable @typescript-eslint/no-unused-vars */ /* eslint-disable @typescript-eslint/no-unused-vars */
import React, { Fragment, useCallback, useEffect, useState } from 'react' import React, { Fragment, useEffect, useState } from 'react'
/* eslint-disable-line */ /* eslint-disable-line */
import { ModalDialog } from '@remix-ui/modal-dialog' import { ModalDialog } from '@remix-ui/modal-dialog'
import { useLocalStorage } from '../custom-hooks/useLocalStorage' import { useLocalStorage } from '../custom-hooks/useLocalStorage'
@ -14,8 +14,6 @@ function PermisssionsSettings ({ pluginSettings }: PermissionSettingsProps) {
* Declare component local state * Declare component local state
*/ */
const [modalVisibility, setModalVisibility] = useState<boolean>(true) const [modalVisibility, setModalVisibility] = useState<boolean>(true)
// const [permissions] = useState<any | null>(
// JSON.parse(localStorage.getItem('plugins/permissions') || '{}'))
const [permissions, setPermissions] = useLocalStorage('plugins/permissions', '{}') const [permissions, setPermissions] = useLocalStorage('plugins/permissions', '{}')
const closeModal = () => setModalVisibility(true) const closeModal = () => setModalVisibility(true)

Loading…
Cancel
Save