From b51b292ea700081d2494ef1992b7dc063d0fc16a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B4mulo=20Penido?= Date: Wed, 3 Apr 2024 15:36:39 -0300 Subject: [PATCH] feat: add search menu button to header (#474) --- src/studio-header/HeaderBody.jsx | 21 ++++++++++++++++++++- src/studio-header/StudioHeader.jsx | 5 ++++- src/studio-header/StudioHeader.test.jsx | 15 +++++++++++++++ src/studio-header/messages.js | 5 +++++ 4 files changed, 44 insertions(+), 2 deletions(-) diff --git a/src/studio-header/HeaderBody.jsx b/src/studio-header/HeaderBody.jsx index af3690610..7a4426d4b 100644 --- a/src/studio-header/HeaderBody.jsx +++ b/src/studio-header/HeaderBody.jsx @@ -1,18 +1,22 @@ import React from 'react'; import PropTypes from 'prop-types'; +import { useIntl } from '@edx/frontend-platform/i18n'; import { ActionRow, Button, Container, + Icon, + IconButton, Nav, Row, } from '@openedx/paragon'; -import { Close, MenuIcon } from '@openedx/paragon/icons'; +import { Close, MenuIcon, Search } from '@openedx/paragon/icons'; import CourseLockUp from './CourseLockUp'; import UserMenu from './UserMenu'; import BrandNav from './BrandNav'; import NavDropdownMenu from './NavDropdownMenu'; +import messages from './messages'; const HeaderBody = ({ logo, @@ -32,7 +36,10 @@ const HeaderBody = ({ isHiddenMainMenu, mainMenuDropdowns, outlineLink, + searchButtonAction, }) => { + const intl = useIntl(); + const renderBrandNav = ( )} + {searchButtonAction && ( + + )}