From 4e6cb7ea714b75086e762849b0b5c1ae2711ba9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ula=C5=9F=20Turan?= Date: Wed, 17 May 2023 12:54:22 +0300 Subject: [PATCH] Refactor #4391 - For ContextMenu --- components/doc/contextmenu/pt/ptdoc.js | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/components/doc/contextmenu/pt/ptdoc.js b/components/doc/contextmenu/pt/ptdoc.js index 342c996020..13d83bf7b7 100644 --- a/components/doc/contextmenu/pt/ptdoc.js +++ b/components/doc/contextmenu/pt/ptdoc.js @@ -139,7 +139,7 @@ export function PTDoc(props) { ref={cm} breakpoint="767px" pt={{ - action: ({ props, state, context }) => ({ className: context.active ? 'bg-primary-200' : context.focused ? 'bg-primary-300' : undefined }) + action: ({ props, state, context }) => ({ className: context.active ? 'bg-primary-200' : undefined }) }} /> Logo cm.current.show(e)} /> @@ -279,7 +279,14 @@ export default function PTDemo() { return (
- + ({ className: context.active ? 'bg-primary-200' : undefined }) + }} + /> Logo cm.current.show(e)} />
) @@ -421,7 +428,14 @@ export default function PTDemo() { return (
- + ({ className: context.active ? 'bg-primary-200' : undefined }) + }} + /> Logo cm.current.show(e)} />
) @@ -442,7 +456,7 @@ export default function PTDemo() { ref={cm} breakpoint="767px" pt={{ - action: ({ props, state, context }) => ({ className: context.active ? 'bg-primary-200' : context.focused ? 'bg-primary-300' : undefined }) + action: ({ props, state, context }) => ({ className: context.active ? 'bg-primary-200' : undefined }) }} /> Logo cm.current.show(e)} />