Rename HiddenMethodsText => HiddenMethodsCell

This commit is contained in:
Robert
2023-10-18 16:30:30 +01:00
parent 8c339d07e8
commit 93de35e7a3

View File

@@ -4,7 +4,7 @@ import { pluralize } from "../../common/word";
import { DataGridCell, DataGridRow } from "../common/DataGrid";
import { ModelEditorViewState } from "../../model-editor/shared/view-state";
const HiddenMethodsText = styled(DataGridCell)`
const HiddenMethodsCell = styled(DataGridCell)`
text-align: center;
`;
@@ -27,11 +27,11 @@ export function HiddenMethodsRow({
return (
<DataGridRow>
<HiddenMethodsText gridColumn={gridColumn}>
<HiddenMethodsCell gridColumn={gridColumn}>
{someMethodsAreVisible && "And "}
{pluralize(numHiddenMethods, "method", "methods")} modeled in other
CodeQL packs
</HiddenMethodsText>
</HiddenMethodsCell>
</DataGridRow>
);
}