All Downloads are FREE. Search and download functionalities are using the official Maven repository.

theme.keycloak.v2.account.resources.PageToolbar.js.map Maven / Gradle / Ivy

There is a newer version: 26.0.5
Show newest version
{"version":3,"file":"PageToolbar.js","names":["React","Toolbar","ToolbarGroup","ToolbarItem","ReferrerLink","LogoutButton","PageToolbar","Component","constructor","props","_defineProperty","referrerName","isKebabDropdownOpen","setState","state","render","createElement","hasReferrer","key","alignment","default","className"],"sources":["../src/app/PageToolbar.tsx"],"sourcesContent":["/*\n * Copyright 2019 Red Hat, Inc. and/or its affiliates.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport * as React from 'react';\n\nimport {Dropdown, KebabToggle, Toolbar, ToolbarGroup, ToolbarItem} from '@patternfly/react-core';\n\nimport {ReferrerDropdownItem} from './widgets/ReferrerDropdownItem';\nimport {ReferrerLink} from './widgets/ReferrerLink';\nimport {Features} from './widgets/features';\nimport {LogoutButton,LogoutDropdownItem} from './widgets/Logout';\n\ndeclare const referrerName: string;\ndeclare const features: Features;\n\ninterface PageToolbarProps {}\ninterface PageToolbarState {isKebabDropdownOpen: boolean}\nexport class PageToolbar extends React.Component {\n    private hasReferrer: boolean = typeof referrerName !== 'undefined';\n\n    public constructor(props: PageToolbarProps) {\n        super(props);\n\n        this.state = {\n            isKebabDropdownOpen: false,\n        };\n    }\n\n    private onKebabDropdownToggle = (isKebabDropdownOpen: boolean) => {\n        this.setState({\n            isKebabDropdownOpen\n        });\n    };\n\n    public render(): React.ReactNode {\n        return (\n            \n                {this.hasReferrer &&\n                    \n                        \n                            \n                        \n                    \n                }\n\n                \n                    \n                        \n                    \n                \n            \n        );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