Skip to content

Commit

Permalink
web: fix types for core/ExpandableSelector
Browse files Browse the repository at this point in the history
  • Loading branch information
dgdavid committed Mar 19, 2024
1 parent 53e36dd commit f70d44a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions web/src/components/core/ExpandableSelector.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@
* find current contact information at www.suse.com.
*/

// @ts-check

import React, { useState } from "react";
import { Table, Thead, Tr, Th, Tbody, Td, ExpandableRowContent } from "@patternfly/react-table";
import { Table, Thead, Tr, Th, Tbody, Td, ExpandableRowContent, RowSelectVariant } from "@patternfly/react-table";

/**
* An object for sharing data across nested maps
Expand Down Expand Up @@ -156,7 +158,7 @@ export default function ExpandableSelector({
rowIndex,
onSelect: () => updateSelection(item),
isSelected: isItemSelected(item),
variant: isMultiple ? "checkbox" : "radio"
variant: isMultiple ? RowSelectVariant.checkbox : RowSelectVariant.radio
};

return (
Expand Down Expand Up @@ -193,7 +195,7 @@ export default function ExpandableSelector({
rowIndex,
onSelect: () => updateSelection(item),
isSelected: isItemSelected(item),
variant: isMultiple ? "checkbox" : "radio"
variant: isMultiple ? RowSelectVariant.checkbox : RowSelectVariant.radio
};

const renderChildren = () => {
Expand Down

0 comments on commit f70d44a

Please sign in to comment.