Skip to content

Commit

Permalink
Refs #37395 - lint changes
Browse files Browse the repository at this point in the history
  • Loading branch information
parthaa committed May 29, 2024
1 parent ee0e910 commit d01ac68
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export const toastType = type => {
};

export const toastTitle = (message, type) => {
console.log({message});
if (message.length <= 60) return message;
return defaultTitle(type);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,8 @@ const ToastsList = ({ railsMessages }) => {
});
}, [dispatch, railsMessages]);

console.log({railsMessages});
console.log({messages});
const toastsList = Object.entries(messages).map(
([key, { type, message, link, sticky, ...toastProps }]) => {
return (
([key, { type, message, link, sticky, ...toastProps }]) => (
<Alert
ouiaId={`toast-item-${key}`}
key={key}
Expand All @@ -51,7 +48,6 @@ const ToastsList = ({ railsMessages }) => {
{(message.length > 60 || React.isValidElement(message)) && message}
</Alert>
)
}
);

return toastsList.length > 0 && <AlertGroup isToast>{toastsList}</AlertGroup>;
Expand Down

0 comments on commit d01ac68

Please sign in to comment.