Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
);
}
if (this.state.istioObjectDetails.destinationRule) {
return (
);
}
} else {
// In theory it shouldn't enter here, but we show a nice error page anyway.
return (
<title size="{TitleSize.lg}">
Error loading object {this.props.match.params.object}
</title>
This might mean the resource is not ready yet or has been deleted and the cluster has not finished
propagating the changes.
);
}
};
export const Visits: React.FC = ({
depot,
visits,
removeHandler,
}: Props) => (
<>
{/* TODO do not show depots */}
undefined}
depot={depot}
visits={visits}
/>
);
const isDisabled = selectedRows.length === 0
const [isOpen, setIsOpen] = useState(false)
const toggle = (
{t('bulk_actions.title')}
)
const warning = [
// FIXME: add styles to look like in mockup
,
]
const dropdownItems = useMemo(() => [
...(isDisabled ? warning : []),
...Object.keys(actions).map((key) => (
setModal(key as BulkAction)}
>
const workloadsRows = this.state.workloads.map(workload => {
return {
cells: [
<>
Workload}>
WS
{workload.name}
,
// This <> wrapper is needed by Slider
<>
const workloadsRows = this.state.suspendedRoutes.map(route => {
return {
cells: [
<>
Workload}>
WS
{route.workload}
,
// Note that <button> here needs to be wrapped by an external <>, otherwise Icon is not properly rendered.
<>
</button><button> : }
onClick={() => this.updateRoute(route.workload, !route.suspended)}
>
{route.suspended ? 'Suspended' : 'Connected'}
</button>
]
};
const listItem = (
<>
Terms of Use
Help
Privacy Policy
);
const images = {
[BackgroundImageSrc.lg]: bg_image,
[BackgroundImageSrc.sm]: bg_image,
[BackgroundImageSrc.sm2x]: bg_image,
[BackgroundImageSrc.xs]: bg_image,
[BackgroundImageSrc.xs2x]: bg_image
};
const loginForm = (
position="right"
onSelect={this.onDropdownSelect}
isOpen={isDropdownOpen}
toggle={
Kyle Baker
}
dropdownItems={userDropdownItems}
/>
);
const bgImages = {
[BackgroundImageSrc.lg]: "/assets/images/pfbg_1200.jpg",
[BackgroundImageSrc.sm]: "/assets/images/pfbg_768.jpg",
[BackgroundImageSrc.sm2x]: "/assets/images/pfbg_768@2x.jpg",
[BackgroundImageSrc.xs]: "/assets/images/pfbg_576.jpg",
[BackgroundImageSrc.xs2x]: "/assets/images/pfbg_576@2x.jpg",
[BackgroundImageSrc.filter]:
"/assets/images/background-filter.svg#image_overlay"
};
const Header = (
}
toolbar={PageToolbar}
// avatar={}
showNavToggle
/>
);
const listItem = (
<>
Terms of Use
Help
Privacy Policy
);
const images = {
[BackgroundImageSrc.lg]: bg_image,
[BackgroundImageSrc.sm]: bg_image,
[BackgroundImageSrc.sm2x]: bg_image,
[BackgroundImageSrc.xs]: bg_image,
[BackgroundImageSrc.xs2x]: bg_image
};
const loginForm = (
*/
import { BackgroundImage, BackgroundImageSrc } from '@patternfly/react-core';
import filter from '@patternfly/react-core/dist/styles/assets/images/background-filter.svg';
/* eslint-disable camelcase */
import pfbg_1200 from '@patternfly/react-core/dist/styles/assets/images/pfbg_1200.jpg';
import pfbg_576 from '@patternfly/react-core/dist/styles/assets/images/pfbg_576.jpg';
import pfbg_576_2x from '@patternfly/react-core/dist/styles/assets/images/pfbg_576@2x.jpg';
import pfbg_768 from '@patternfly/react-core/dist/styles/assets/images/pfbg_768.jpg';
import pfbg_768_2x from '@patternfly/react-core/dist/styles/assets/images/pfbg_768@2x.jpg';
import * as React from 'react';
/* eslint-enable camelcase */
const bgImages = {
[BackgroundImageSrc.lg]: pfbg_1200,
[BackgroundImageSrc.sm]: pfbg_768,
[BackgroundImageSrc.sm2x]: pfbg_768_2x,
[BackgroundImageSrc.xs]: pfbg_576,
[BackgroundImageSrc.xs2x]: pfbg_576_2x,
[BackgroundImageSrc.filter]: `${filter}#image_overlay`,
};
const Background: React.FC = () => (
);
export default Background;
<>
Terms of Use
Help
Privacy Policy
);
const images = {
[BackgroundImageSrc.lg]: bg_image,
[BackgroundImageSrc.sm]: bg_image,
[BackgroundImageSrc.sm2x]: bg_image,
[BackgroundImageSrc.xs]: bg_image,
[BackgroundImageSrc.xs2x]: bg_image
};
const loginForm = (