MM-52261: Remove boards language selector, use Language in Display Settings (#23095)
Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
a1470c77ac
Коммит
657c0024f9
@@ -25,7 +25,6 @@ const PluggableIntroButtons = React.memo((props: Props) => {
|
||||
key={buttonProps.id}
|
||||
className={'intro-links color--link channelIntroButton style--none'}
|
||||
onClick={() => buttonProps.action?.(props.channel, props.channelMember)}
|
||||
aria-label={buttonProps.text}
|
||||
>
|
||||
{buttonProps.icon}
|
||||
{buttonProps.text}
|
||||
|
||||
@@ -208,7 +208,7 @@ export default class PluginRegistry {
|
||||
// Accepts the following:
|
||||
// - icon - React element to use as the button's icon
|
||||
// - action - a function called when the button is clicked, passed the channel and channel member as arguments
|
||||
// - text - a localized string to use as the button's text
|
||||
// - text - a localized string or React element to use as the button's text
|
||||
registerChannelIntroButtonAction = reArg([
|
||||
'icon',
|
||||
'action',
|
||||
@@ -220,8 +220,7 @@ export default class PluginRegistry {
|
||||
}: {
|
||||
icon: ReactResolvable;
|
||||
action: PluginComponent['action'];
|
||||
tooltipText: string;
|
||||
text: string;
|
||||
text: ReactResolvable;
|
||||
}) => {
|
||||
const id = generateId();
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user