chore: update prettier configuration for print width (#519)
* feat: update prettier configuration for print width * chore: apply code formatting to entire repository * fix: remove build files * fix: format issue --------- Co-authored-by: Meier Lukas <meierschlumpf@gmail.com>
This commit is contained in:
@@ -65,11 +65,7 @@ export const WidgetIntegrationSelect = ({
|
||||
|
||||
const options = data.map((item) => {
|
||||
return (
|
||||
<Combobox.Option
|
||||
value={item.id}
|
||||
key={item.id}
|
||||
active={multiSelectValues.includes(item.id)}
|
||||
>
|
||||
<Combobox.Option value={item.id} key={item.id} active={multiSelectValues.includes(item.id)}>
|
||||
<Group gap="sm" align="center">
|
||||
{multiSelectValues.includes(item.id) ? <CheckIcon size={12} /> : null}
|
||||
<Group gap={7} align="center">
|
||||
@@ -87,25 +83,11 @@ export const WidgetIntegrationSelect = ({
|
||||
});
|
||||
|
||||
return (
|
||||
<Combobox
|
||||
store={combobox}
|
||||
onOptionSubmit={handleValueSelect}
|
||||
withinPortal={false}
|
||||
>
|
||||
<Combobox store={combobox} onOptionSubmit={handleValueSelect} withinPortal={false}>
|
||||
<Combobox.DropdownTarget>
|
||||
<PillsInput
|
||||
pointer
|
||||
onClick={() => combobox.toggleDropdown()}
|
||||
{...props}
|
||||
>
|
||||
<PillsInput pointer onClick={() => combobox.toggleDropdown()} {...props}>
|
||||
<Pill.Group>
|
||||
{values.length > 0 ? (
|
||||
values
|
||||
) : (
|
||||
<Input.Placeholder>
|
||||
{t("common.multiSelect.placeholder")}
|
||||
</Input.Placeholder>
|
||||
)}
|
||||
{values.length > 0 ? values : <Input.Placeholder>{t("common.multiSelect.placeholder")}</Input.Placeholder>}
|
||||
|
||||
<Combobox.EventsTarget>
|
||||
<PillsInput.Field
|
||||
@@ -115,9 +97,7 @@ export const WidgetIntegrationSelect = ({
|
||||
if (event.key !== "Backspace") return;
|
||||
|
||||
event.preventDefault();
|
||||
handleValueRemove(
|
||||
multiSelectValues[multiSelectValues.length - 1]!,
|
||||
);
|
||||
handleValueRemove(multiSelectValues[multiSelectValues.length - 1]!);
|
||||
}}
|
||||
/>
|
||||
</Combobox.EventsTarget>
|
||||
@@ -150,13 +130,6 @@ const IntegrationPill = ({ option, onRemove }: IntegrationPillProps) => (
|
||||
<Text span size="xs" lh={1} fw={500}>
|
||||
{option.name}
|
||||
</Text>
|
||||
<CloseButton
|
||||
onMouseDown={onRemove}
|
||||
variant="transparent"
|
||||
color="gray"
|
||||
size={22}
|
||||
iconSize={14}
|
||||
tabIndex={-1}
|
||||
/>
|
||||
<CloseButton onMouseDown={onRemove} variant="transparent" color="gray" size={22} iconSize={14} tabIndex={-1} />
|
||||
</Group>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user