Fixing add button (#5780)

pull/5719/head
Leo Giovanetti 2022-11-29 16:18:11 -03:00 committed by GitHub
parent 901f54ca3a
commit 0c746ec10f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 6 deletions

View File

@ -61,12 +61,10 @@ const AdditionalCalendarSelector = ({ isLoading }: AdditionalCalendarSelectorPro
<Select <Select
name="additionalCalendar" name="additionalCalendar"
placeholder={ placeholder={
<div className="flex justify-start text-black"> <Button StartIcon={Icon.FiPlus} color="secondary">
<Icon.FiPlus className="-ml-1 h-4 w-4 ltr:mr-2 rtl:ml-2 rtl:-mr-1" /> {t("add")}
<p>{t("add")}</p> </Button>
</div>
} }
className="min-w-44"
options={options} options={options}
isSearchable={false} isSearchable={false}
isLoading={isLoading} isLoading={isLoading}
@ -80,11 +78,16 @@ const AdditionalCalendarSelector = ({ isLoading }: AdditionalCalendarSelectorPro
width: "max-content", width: "max-content",
right: "0", right: "0",
}), }),
indicatorSeparator: (defaultStyles) => ({
...defaultStyles,
display: "none",
}),
control: (defaultStyles) => ({ control: (defaultStyles) => ({
...defaultStyles, ...defaultStyles,
padding: "0", padding: "0",
border: "0", border: "0",
borderRadius: "inherit", borderRadius: "6px",
minHeight: "auto",
}), }),
dropdownIndicator: (defaultStyles) => ({ dropdownIndicator: (defaultStyles) => ({
...defaultStyles, ...defaultStyles,