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

pull/5370/head
joseph izang 3 years ago
parent 5120de3b50
commit 2eceaa58d8
  1. 4
      libs/remix-ui/plugin-manager/src/lib/components/permissionsSettings.tsx

@ -1,5 +1,5 @@
/* 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 */
import { ModalDialog } from '@remix-ui/modal-dialog'
import { useLocalStorage } from '../custom-hooks/useLocalStorage'
@ -14,8 +14,6 @@ function PermisssionsSettings ({ pluginSettings }: PermissionSettingsProps) {
* Declare component local state
*/
const [modalVisibility, setModalVisibility] = useState<boolean>(true)
// const [permissions] = useState<any | null>(
// JSON.parse(localStorage.getItem('plugins/permissions') || '{}'))
const [permissions, setPermissions] = useLocalStorage('plugins/permissions', '{}')
const closeModal = () => setModalVisibility(true)

Loading…
Cancel
Save