Skip to content

Commit

Permalink
- Add textSize argument to createStandardEditableTextCell.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattias800 committed Oct 13, 2023
1 parent 19efa8c commit b11c1ba
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import { Indent, Text } from "@stenajs-webui/core";
import { Indent, Text, TextSize } from "@stenajs-webui/core";
import { TextInput } from "@stenajs-webui/forms";
import * as React from "react";
import { StandardTableCellRenderer } from "../../../config/StandardTableColumnConfig";

export const createStandardEditableTextCell =
<TItemValue, TItem>(): StandardTableCellRenderer<TItemValue, TItem> =>
<TItemValue, TItem>(
textSize?: TextSize
): StandardTableCellRenderer<TItemValue, TItem> =>
({
label,
gridCell: {
Expand All @@ -29,6 +31,8 @@ export const createStandardEditableTextCell =
/>
) : (
<Indent>
<Text color={"var(--swui-primary-action-color)"}>{label}</Text>
<Text color={"var(--swui-primary-action-color)"} size={textSize}>
{label}
</Text>
</Indent>
);

0 comments on commit b11c1ba

Please sign in to comment.