Revert inputProps things

This commit is contained in:
binwiederhier
2023-05-24 21:32:15 -04:00
parent 1251a4adab
commit b7c121e78e
7 changed files with 33 additions and 22 deletions

View File

@@ -373,23 +373,23 @@ const PublishDialog = (props) => {
"aria-label": t("publish_dialog_priority_label"),
}}
>
{[5, 4, 3, 2, 1].map((priorityMenuItem) => (
{[5, 4, 3, 2, 1].map((p) => (
<MenuItem
key={`priorityMenuItem${priorityMenuItem}`}
value={priorityMenuItem}
key={`priorityMenuItem${p}`}
value={p}
aria-label={t("notifications_priority_x", {
priority: priorityMenuItem,
priority: p,
})}
>
<div style={{ display: "flex", alignItems: "center" }}>
<img
src={priorities[priorityMenuItem].file}
src={priorities[p].file}
style={{ marginRight: "8px" }}
alt={t("notifications_priority_x", {
priority: priorityMenuItem,
priority: p,
})}
/>
<div>{priorities[priorityMenuItem].label}</div>
<div>{priorities[p].label}</div>
</div>
</MenuItem>
))}
@@ -823,10 +823,10 @@ const ExpandingTextField = (props) => {
sx={{ width: `${textWidth}px`, borderBottom: "none" }}
InputProps={{
style: { fontSize: theme.typography[props.variant].fontSize },
inputProps: {
style: { paddingBottom: 0, paddingTop: 0 },
"aria-label": props.placeholder,
},
}}
inputProps={{
style: { paddingBottom: 0, paddingTop: 0 },
"aria-label": props.placeholder,
}}
disabled={props.disabled}
/>