hide timezone border (#546)
This commit is contained in:
@@ -577,6 +577,8 @@ export default function EventFormFields({
|
|||||||
width={220}
|
width={220}
|
||||||
size="small"
|
size="small"
|
||||||
placeholder={t("event.form.timezonePlaceholder")}
|
placeholder={t("event.form.timezonePlaceholder")}
|
||||||
|
hideBorder
|
||||||
|
inputPadding="8px 65px 8px 0px"
|
||||||
/>
|
/>
|
||||||
</Box>
|
</Box>
|
||||||
</FieldWithLabel>
|
</FieldWithLabel>
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ interface TimezoneAutocompleteProps {
|
|||||||
inputPadding?: string;
|
inputPadding?: string;
|
||||||
onClose?: () => void;
|
onClose?: () => void;
|
||||||
disableClearable?: boolean;
|
disableClearable?: boolean;
|
||||||
|
hideBorder?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function TimezoneAutocomplete({
|
export function TimezoneAutocomplete({
|
||||||
@@ -38,6 +39,7 @@ export function TimezoneAutocomplete({
|
|||||||
inputPadding,
|
inputPadding,
|
||||||
onClose,
|
onClose,
|
||||||
disableClearable = false,
|
disableClearable = false,
|
||||||
|
hideBorder = false,
|
||||||
}: TimezoneAutocompleteProps) {
|
}: TimezoneAutocompleteProps) {
|
||||||
const options = useMemo<TimezoneOption[]>(() => {
|
const options = useMemo<TimezoneOption[]>(() => {
|
||||||
return zones.map((tz) => ({
|
return zones.map((tz) => ({
|
||||||
@@ -70,6 +72,21 @@ export function TimezoneAutocomplete({
|
|||||||
placeholder={placeholder}
|
placeholder={placeholder}
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
autoComplete="off"
|
autoComplete="off"
|
||||||
|
sx={
|
||||||
|
hideBorder
|
||||||
|
? {
|
||||||
|
"& .MuiOutlinedInput-notchedOutline": {
|
||||||
|
border: "none",
|
||||||
|
},
|
||||||
|
"&:hover .MuiOutlinedInput-notchedOutline": {
|
||||||
|
border: "none",
|
||||||
|
},
|
||||||
|
"&.Mui-focused .MuiOutlinedInput-notchedOutline": {
|
||||||
|
border: "none",
|
||||||
|
},
|
||||||
|
}
|
||||||
|
: undefined
|
||||||
|
}
|
||||||
slotProps={{
|
slotProps={{
|
||||||
input: {
|
input: {
|
||||||
...params.InputProps,
|
...params.InputProps,
|
||||||
|
|||||||
Reference in New Issue
Block a user