import { Fragment, useState } from 'react';
import {
Card,
CardHeader,
CardTitle,
CardBody,
CardFooter,
DescriptionList,
DescriptionListGroup,
DescriptionListTerm,
DescriptionListDescription,
Divider,
Gallery,
MenuToggle,
MenuToggleElement,
Select,
SelectList,
SelectOption,
Timestamp,
Title
} from '@patternfly/react-core';
import flex from '@patternfly/react-styles/css/utilities/Flex/flex';
import cssGridTemplateColumnsMin from '@patternfly/react-tokens/dist/esm/l_gallery_GridTemplateColumns_min';
export const CardLogView: React.FunctionComponent = () => {
const [isOpen, setIsOpen] = useState(false);
const selectItems = (
Last hour
Last 6 hours
Last 24 hours
Last 7 days
);
const toggle = (toggleRef: React.Ref) => (
setIsOpen(!isOpen)} isExpanded={isOpen} variant="plainText">
Filter
);
const headerActions = (
);
return (
Note: Custom CSS is used in this demo to align the card title and select toggle text to{' '}
baseline alignment.
Activity
Readiness probe failed
Readiness probe failed: Get https://10.131.0.7:5000/healthz: dial tcp 10.131.0.7:5000: connect:
connection refused
Successful assignment
Successfully assigned default/example to ip-10-0-130-149.ec2.internal
Pulling image
Pulling image "openshift/hello-openshift"
Created container
Created container hello-openshift
View all activity
);
};