Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,12 @@ const ParameterLabel: FC<ParameterLabelProps> = ({ parameter, isPreset }) => {

<div className="flex flex-col w-full gap-1">
<Label className="flex gap-2 flex-wrap text-sm font-medium">
{displayName}

<span className="flex">
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For now, I decided to add the required asterisk for all parameters even though it really doesn't make sense for (checkbox, slider, radio, switch) since all parameters have the required prop.

{displayName}
{!parameter.required && (
<span className="text-content-destructive">*</span>
)}
</span>
{parameter.mutable && (
<TooltipProvider delayDuration={100}>
<Tooltip>
Expand Down Expand Up @@ -169,6 +173,7 @@ const ParameterField: FC<ParameterFieldProps> = ({
onValueChange={onChange}
defaultValue={defaultValue}
disabled={disabled}
required={parameter.required}
>
<SelectTrigger>
<SelectValue
Expand Down Expand Up @@ -325,6 +330,7 @@ const ParameterField: FC<ParameterFieldProps> = ({
placeholder={
(parameter.styling as { placeholder?: string })?.placeholder
}
required={parameter.required}
/>
);

Expand All @@ -351,6 +357,7 @@ const ParameterField: FC<ParameterFieldProps> = ({
defaultValue={defaultValue}
onChange={(e) => onChange(e.target.value)}
disabled={disabled}
required={parameter.required}
placeholder={
(parameter.styling as { placeholder?: string })?.placeholder
}
Expand Down
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy