Skip to content

Commit

Permalink
chore: Fix various object-shorthand issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Standard8 committed Oct 15, 2024
1 parent cab8455 commit d5fa569
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion addon/content/components/message/messageActionButton.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export function ActionButton({ type, callback, className, showString }) {

return React.createElement(
"button",
{ className: className || "", title: title, onClick: action },
{ className: className || "", title, onClick: action },
React.createElement(SvgIcon, { ariaHidden: true, hash: info.icon }),
" ",
!!showString && title
Expand Down
2 changes: 1 addition & 1 deletion addon/content/components/message/messageDetails.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function ContactList({ label, contacts, className = "", msgId }) {
React.createElement(DetailedContactLabel, {
className: "",
contact,
msgId: msgId,
msgId,
}),
React.createElement("br")
)
Expand Down
26 changes: 13 additions & 13 deletions addon/content/components/message/messageHeader.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export function DetailedContactLabel({ contact, className, msgId }) {
popup: React.createElement(ContactDetail, {
name: contact.name,
email: contact.displayEmail,
msgId: msgId,
msgId,
realEmail: contact.email,
avatar: contact.avatar,
contactId: contact.contactId,
Expand Down Expand Up @@ -193,7 +193,7 @@ export function ContactLabel({ contact, className, msgId }) {
popup: React.createElement(ContactDetail, {
name: contact.name,
email: contact.displayEmail,
msgId: msgId,
msgId,
realEmail: contact.email,
avatar: contact.avatar,
contactId: contact.contactId,
Expand Down Expand Up @@ -316,7 +316,7 @@ export function MessageHeader({
const contact = allToMap.get(item.value);
return React.createElement(ContactLabel, {
className: "to",
contact: contact,
contact,
key: item.value,
msgId: id,
});
Expand Down Expand Up @@ -394,22 +394,22 @@ export function MessageHeader({
);
},
folderName: shortFolderName,
inView: inView,
inView,
}),
snippet
)
),
React.createElement(MessageHeaderOptions, {
dispatch: dispatch,
date: date,
detailsShowing: detailsShowing,
expanded: expanded,
fullDate: fullDate,
dispatch,
date,
detailsShowing,
expanded,
fullDate,
id,
attachments: attachments,
multipleRecipients: multipleRecipients,
recipientsIncludeLists: recipientsIncludeLists,
isDraft: isDraft,
attachments,
multipleRecipients,
recipientsIncludeLists,
isDraft,
})
);
}
Expand Down
2 changes: 1 addition & 1 deletion addon/content/components/message/messageList.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function _MessageList(props) {
displayingMultipleMsgs: !!props.messages.length,
hideQuickReply: props.summary.prefs.hideQuickReply,
iframesLoading: props.summary.iframesLoading,
index: index,
index,
isInTab: props.summary.isInTab,
isLastMessage: index == props.messages.msgData.length - 1,
isStandalone: props.summary.isStandalone,
Expand Down
2 changes: 1 addition & 1 deletion addon/content/components/message/messageTags.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export function MessageTags({ expanded, tags = [], onTagsChange }) {
tags.map((tag, i) =>
React.createElement(MessageTag, {
color: tag.color,
expanded: expanded,
expanded,
key: i,
name: tag.name,
onClickX: () => {
Expand Down
2 changes: 1 addition & 1 deletion addon/content/esmodules/thunderbirdCompat.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ if (!browser.folders) {
async getParentFolders(accountId) {
return [
{
accountId: accountId,
accountId,
name: "Fake",
path: "/Fake",
},
Expand Down
4 changes: 2 additions & 2 deletions addon/dev-frame/components/thunderbird.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,10 @@ function Thread({ thread, position = 0 }) {
thread.map((message, i) =>
React.createElement(MessageRow, {
key: i,
message: message,
message,
position: i,
numMessages: thread.length,
onClick: onClick,
onClick,
})
)
);
Expand Down
2 changes: 1 addition & 1 deletion addon/gallery/gallery.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import PropTypes from "prop-types";
const Photo = React.forwardRef(({ index, length, name, size, src }, ref) =>
React.createElement(
"div",
{ className: "photoWrap", ref: ref },
{ className: "photoWrap", ref },
React.createElement("img", { src }),
React.createElement(
"div",
Expand Down
14 changes: 7 additions & 7 deletions addon/options/options.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ export function TextOption({
id: name,
type: "text",
className: "pref",
value: value,
value,
onChange: (e) => {
onChange(name, e.target.value);
},
Expand Down Expand Up @@ -330,7 +330,7 @@ export function NumericOption({
className: "pref hidespinbuttons",
min: 0,
max: 100,
value: value,
value,
onChange: (e) => {
onChange(name, parseInt(e.target.value || value, 10));
},
Expand Down Expand Up @@ -524,11 +524,11 @@ export function Main() {
ReactRedux.Provider,
{ store },
React.createElement(ConversationOptions, {
localizedPrefsInfo: localizedPrefsInfo,
localizedName: localizedName,
localizedStartAssistant: localizedStartAssistant,
localizedUndoCustomizations: localizedUndoCustomizations,
localizedUndoCustomizationsTooltip: localizedUndoCustomizationsTooltip,
localizedPrefsInfo,
localizedName,
localizedStartAssistant,
localizedUndoCustomizations,
localizedUndoCustomizationsTooltip,
startSetupAssistant: openSetupAssistant,
startUndoConversations: runUndoConversations,
})
Expand Down

0 comments on commit d5fa569

Please sign in to comment.