diff --git a/maternal-web/components/layouts/TabBar/TabBar.tsx b/maternal-web/components/layouts/TabBar/TabBar.tsx index 818846e..6ece9e8 100644 --- a/maternal-web/components/layouts/TabBar/TabBar.tsx +++ b/maternal-web/components/layouts/TabBar/TabBar.tsx @@ -64,38 +64,38 @@ export const TabBar = () => { > {tabs.map((tab) => { if (tab.value === 'voice') { - // Center voice button + // Center voice button - using BottomNavigationAction as wrapper to avoid prop warnings return ( - - { - const voiceButton = document.querySelector('[aria-label="voice input"]') as HTMLButtonElement; - if (voiceButton) { - voiceButton.click(); - } - }} - sx={{ - bgcolor: '#FF69B4', - color: 'white', - width: 48, - height: 48, - '&:hover': { - bgcolor: '#FF1493', - }, - }} - > - - - + label="" + value="voice" + showLabel={false} + icon={ + { + e.stopPropagation(); + const voiceButton = document.querySelector('[aria-label="voice input"]') as HTMLButtonElement; + if (voiceButton) { + voiceButton.click(); + } + }} + sx={{ + bgcolor: '#FF69B4', + color: 'white', + width: 48, + height: 48, + '&:hover': { + bgcolor: '#FF1493', + }, + }} + > + + + } + sx={{ minWidth: 80 }} + /> ); } return (