Skip to content

Commit

Permalink
Fix: select permissions pop up (#559)
Browse files Browse the repository at this point in the history
* fully closes the select permissions panel

* remove false authenticated check
  • Loading branch information
thewahome committed May 28, 2020
1 parent 5169f75 commit 36c1468
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/app/views/settings/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ import { Permission } from '../query-runner/request/permissions';
function Settings(props: ISettingsProps) {
const dispatch = useDispatch();

const [ themeChooserDialogHidden, hideThemeChooserDialog] = useState(true);
const [ items, setItems] = useState([]);
const [ selectedPermissions, setSelectedPermissions] = useState([]);
const [ panelIsOpen, setPanelState] = useState(false);
const [themeChooserDialogHidden, hideThemeChooserDialog] = useState(true);
const [items, setItems] = useState([]);
const [selectedPermissions, setSelectedPermissions] = useState([]);
const [panelIsOpen, setPanelState] = useState(false);

const {
intl: { messages }
Expand Down Expand Up @@ -194,7 +194,7 @@ function Settings(props: ISettingsProps) {

<Panel
isOpen={panelIsOpen}
onDismiss={() => togglePermissionsPanel}
onDismiss={() => togglePermissionsPanel()}
type={PanelType.medium}
hasCloseButton={true}
headerText={messages.Permissions}
Expand Down

0 comments on commit 36c1468

Please sign in to comment.