Skip to content

Commit

Permalink
Fixed linting and missing bracket.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlabaj committed Jul 19, 2024
1 parent 0351ab3 commit 6af06b8
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import { Button } from '@patternfly/react-core';

import clsx from 'clsx';
import { css } from '@patternfly/react-styles';
import { createUseStyles } from 'react-jss';

export interface SerialConsoleActionsProps extends React.HTMLProps<HTMLDivElement> {
onDisconnect: () => void;
Expand All @@ -26,7 +26,7 @@ export const SerialConsoleActions: React.FunctionComponent<SerialConsoleActionsP
}: SerialConsoleActionsProps) => {
const styles = useStyles();
return (
<div className={css(styles.consoleActionsSerial)}>
<div className={clsx(styles.consoleActionsSerial)}>
<Button variant="secondary" onClick={props.onDisconnect}>
{textDisconnect}
</Button>
Expand All @@ -35,4 +35,6 @@ export const SerialConsoleActions: React.FunctionComponent<SerialConsoleActionsP
</Button>
</div>
);
}

SerialConsoleActions.displayName = 'SerialConsoleActions';

0 comments on commit 6af06b8

Please sign in to comment.