feat(desktop): review flow

This commit is contained in:
Adam
2025-11-06 15:13:02 -06:00
parent b8c51e307f
commit 96c57418f3
11 changed files with 341 additions and 77 deletions

View File

@@ -1,6 +1,7 @@
import { createMemo, For, Match, Show, Switch } from "solid-js"
export function DiffChanges(props: {
class?: string
changes: { additions: number; deletions: number } | { additions: number; deletions: number }[]
variant?: "default" | "bars"
}) {
@@ -92,7 +93,11 @@ export function DiffChanges(props: {
return (
<Show when={variant() === "default" ? total() > 0 : true}>
<div data-component="diff-changes" data-variant={variant()}>
<div
data-component="diff-changes"
data-variant={variant()}
classList={{ [props.class ?? ""]: true }}
>
<Switch>
<Match when={variant() === "bars"}>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 12" fill="none">