Show the whole Rule on one review card, with quiet flags for missing cards and Continue once each question has one.
This commit is contained in:
1 parent
cc878e3c19
commit
6e2e1915ae
30 files changed
+571
-218
No files matched your search
@@ -1,6 +1,7 @@
|
||||
"use client";
|
||||
|
||||
import { memo, type CSSProperties } from "react";
|
||||
import Icon from "../../asset/icon/Icon";
|
||||
import type { ChipViewProps } from "./Chip.types";
|
||||
|
||||
function chipSurfaceStyle(
|
||||
@@ -87,6 +88,7 @@ function ChipView({
|
||||
onRemove,
|
||||
onCheck,
|
||||
onClose,
|
||||
hasWarning = false,
|
||||
inputValue,
|
||||
onInputChange,
|
||||
onInputKeyDown,
|
||||
@@ -280,7 +282,13 @@ function ChipView({
|
||||
onClick={handleClick}
|
||||
{...sharedA11y}
|
||||
>
|
||||
{isSelected ? (
|
||||
{hasWarning ? (
|
||||
<Icon
|
||||
name="warning"
|
||||
size={isSmall ? 12 : 16}
|
||||
className="shrink-0 text-current"
|
||||
/>
|
||||
) : isSelected ? (
|
||||
<svg
|
||||
aria-hidden
|
||||
viewBox="0 0 12 12"
|
||||
|
||||
Reference in new issue
Block a user