Mm 20561: Updating admin manage roles modal to typescript #4625
Conversation
@@ -14,8 +13,27 @@ import {trackEvent} from 'actions/diagnostics_actions.jsx'; | |||
import FormattedMarkdownMessage from 'components/formatted_markdown_message.jsx'; | |||
import BotBadge from 'components/widgets/badges/bot_badge'; | |||
import Avatar from 'components/widgets/users/avatar'; | |||
type Props = { | |||
show: boolean; | |||
user?: any; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quick question: is the intention to make user
a specific type when more code gets ported to TS?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thats a good question but i dont know about a plan to do so, imo its a good idea to do so if there's any "starter" type for the user
object i can change to that type and we can append to it as we go.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not a subject matter expert regarding the webapp but this looks good to me. Later I would hope user
and possibly error
are made real types instead of any
, but I understand that is hard to do until more code get ported.
This issue has been automatically labelled "stale" because it hasn't had recent activity. /cc @jasonblais @hanzei |
@opllama2 Sorry for the delay with the reviews. Someone will look into your PR over the next few days. |
/update-branch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks @opllama2 🎉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and passed, thanks @opllama2!
Thnx all, proud of it my first contribution 🥰 |
Summary
This PR updates the admin console manage roles modal to use typescript within
components/admin_console/manage_roles_modal
Ticket Link
Jira Link: https://mattermost.atlassian.net/browse/MM-20561
Fixes mattermost/mattermost#13511