Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: message appearance, trash, and message color in import view #235

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Mohammad96Assaf
Copy link
Contributor

ref #234

@Mohammad96Assaf Mohammad96Assaf added bug Something isn't working need-reviewer Send notification in Discord labels Oct 23, 2024
@Mohammad96Assaf Mohammad96Assaf added this to the Release 2 milestone Oct 23, 2024
@Mohammad96Assaf Mohammad96Assaf self-assigned this Oct 23, 2024
@doriengr doriengr removed this from the Release 2 milestone Oct 27, 2024
{message}
</div>
)}
</>
);
};

export default FileUpload;
const getClassNameForMessageType = (messageType: MessageType) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You do not need a switch case for this. You could directly set the color in the MessageType you created. You can take a look at the file useDetailsForWateringStatus.ts. In that file the same logic is used.

@@ -0,0 +1,7 @@
export const type = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file can be a hook 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working need-reviewer Send notification in Discord
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants