MM-50384 : Mark all other menus deprecated (#22609)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
9570972571
Коммит
241001f969
@@ -31,6 +31,9 @@ type Props = {
|
||||
listId?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use the "webapp/channels/src/components/menu" instead.
|
||||
*/
|
||||
export default class Menu extends React.PureComponent<Props> {
|
||||
public static Header = MenuHeader
|
||||
public static Group = MenuGroup
|
||||
|
||||
@@ -10,6 +10,9 @@ type Props = {
|
||||
children?: React.ReactNode;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use the "webapp/channels/src/components/menu" instead.
|
||||
*/
|
||||
export default class MenuGroup extends React.PureComponent<Props> {
|
||||
handleDividerClick = (e: React.MouseEvent): void => {
|
||||
e.preventDefault();
|
||||
|
||||
@@ -11,6 +11,9 @@ type Props = {
|
||||
onClick?: () => void;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use the "webapp/channels/src/components/menu" instead.
|
||||
*/
|
||||
export default class MenuHeader extends React.PureComponent<Props> {
|
||||
public render() {
|
||||
const {children, onClick} = this.props;
|
||||
|
||||
@@ -6,6 +6,9 @@ import classNames from 'classnames';
|
||||
|
||||
import './menu_item.scss';
|
||||
|
||||
/**
|
||||
* @deprecated Use the "webapp/channels/src/components/menu" instead.
|
||||
*/
|
||||
export default function menuItem(Component: React.ComponentType<any>) {
|
||||
type Props = {
|
||||
show: boolean;
|
||||
|
||||
@@ -60,6 +60,9 @@ type State = {
|
||||
show: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use the "webapp/channels/src/components/menu" instead.
|
||||
*/
|
||||
export default class SubMenuItem extends React.PureComponent<Props, State> {
|
||||
private node: React.RefObject<HTMLLIElement>;
|
||||
|
||||
|
||||
@@ -29,6 +29,9 @@ type State = {
|
||||
open: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use the "webapp/channels/src/components/menu" instead.
|
||||
*/
|
||||
export default class MenuWrapper extends React.PureComponent<Props, State> {
|
||||
private node: React.RefObject<HTMLDivElement>;
|
||||
|
||||
|
||||
@@ -13,6 +13,9 @@ type Props = {
|
||||
show: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use the "webapp/channels/src/components/menu" instead.
|
||||
*/
|
||||
export default function MenuWrapperAnimation(props: Props) {
|
||||
if (isMobile()) {
|
||||
if (props.show) {
|
||||
|
||||
Ссылка в новой задаче
Block a user