feat: lint, wording, WIP
This commit is contained in:
parent
a03daa4252
commit
0ed60110bd
1 changed files with 4 additions and 4 deletions
|
|
@ -72,17 +72,17 @@ export const SessionReview = (props: SessionReviewProps) => {
|
||||||
<div data-slot="session-review-actions">
|
<div data-slot="session-review-actions">
|
||||||
<Show when={props.onDiffStyleChange}>
|
<Show when={props.onDiffStyleChange}>
|
||||||
<RadioGroup
|
<RadioGroup
|
||||||
options={["unified", "split"] as const}
|
options={["unified", "split"]}
|
||||||
current={diffStyle()}
|
current={diffStyle()}
|
||||||
value={(style) => style}
|
value={(style) => style}
|
||||||
label={(style) => (style === "unified" ? "Unified" : "Split")}
|
label={(style) => (style === "unified" ? "Unified" : "Split")}
|
||||||
onSelect={(style) => style && props.onDiffStyleChange?.(style)}
|
onSelect={(style) => style && props.onDiffStyleChange?.(style as SessionReviewDiffStyle)}
|
||||||
/>
|
/>
|
||||||
</Show>
|
</Show>
|
||||||
<Button size="normal" icon="chevron-grabber-vertical" onClick={handleExpandOrCollapseAll}>
|
<Button size="normal" icon="chevron-grabber-vertical" onClick={handleExpandOrCollapseAll}>
|
||||||
<Switch>
|
<Switch>
|
||||||
<Match when={open().length > 0}>Collapse all</Match>
|
<Match when={open().length > 0}>Collapse</Match>
|
||||||
<Match when={true}>Expand all</Match>
|
<Match when={true}>Expand</Match>
|
||||||
</Switch>
|
</Switch>
|
||||||
</Button>
|
</Button>
|
||||||
{props.actions}
|
{props.actions}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue