Skip to content

CAS-248 - add error message for in-line image#178

Merged
germanurrus merged 3 commits intomainfrom
germanurrustarazu/cas-248
Jul 18, 2022
Merged

CAS-248 - add error message for in-line image#178
germanurrus merged 3 commits intomainfrom
germanurrustarazu/cas-248

Conversation

@germanurrus
Copy link
Copy Markdown
Contributor

@germanurrus germanurrus commented Jul 18, 2022

Added Error Message on upload:
Screen Shot 2022-07-18 at 11 58 51

Not Related but fixes style on mobile:
Before:
Screen Shot 2022-07-18 at 12 00 20

After:
Screen Shot 2022-07-18 at 12 16 29

onDismiss,
isCancelling = false,
onDone,
maxImageFiles = MAX_IMAGE_FILES,
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

made this a prop for the component

export const MAX_AVATAR_FILE_SIZE = 2097152;

export const MAX_PROPOSAL_IMAGE_FILE_SIZE = 2097152;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this is kind of repeated but applies only for in-line images updated to proposals

@germanurrus germanurrus changed the title CAS-248 - add error message CAS-248 - add error message for in-line image Jul 18, 2022
Copy link
Copy Markdown
Contributor

@mannynotfound mannynotfound left a comment

Choose a reason for hiding this comment

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

LGTM!

@germanurrus germanurrus merged commit 2c8b704 into main Jul 18, 2022
@germanurrus germanurrus deleted the germanurrustarazu/cas-248 branch July 18, 2022 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants