diff --git a/apps/dsep/components/landingPage/LandingPage.tsx b/apps/dsep/components/landingPage/LandingPage.tsx
index 1aa49adac..e30e85c40 100644
--- a/apps/dsep/components/landingPage/LandingPage.tsx
+++ b/apps/dsep/components/landingPage/LandingPage.tsx
@@ -1,10 +1,10 @@
import React, { useState } from 'react'
import Router from 'next/router'
+import { SearchInput } from '@beckn-ui/becknified-components'
+import { Box, Flex, Text, Image } from '@chakra-ui/react'
import ImageCard from './ImageCard'
import { useLanguage } from '../../hooks/useLanguage'
-import { Box, Flex, Text, Input, Image } from '@chakra-ui/react'
-
import beckenFooter from '../../public/images/beckenFooterLogo.svg'
import couresImageWhite from '../../public/images/landing-page-icons/CoursesWhite.svg'
import coursesImageBlack from '../../public/images/landing-page-icons/CoursesBlack.svg'
@@ -29,6 +29,13 @@ const LandingPage: React.FC = () => {
setActiveCard(type)
}
+ const searchIconClickHandler = (e: any) => {
+ if (searchTerm) {
+ navigateToSearchResults()
+ }
+ e.preventDefault()
+ }
+
return (
{
))}
-
-
+ setSearchTerm(e.target.value)}
- onKeyDown={event => event.key === 'Enter' && navigateToSearchResults()}
- _focusVisible={{
- borderColor: 'transparent',
- boxShadow: 'transparent'
- }}
+ onChangeHandler={(e: React.BaseSyntheticEvent) => setSearchTerm(e.target.value)}
+ searchIcon={'/images/searchIcon.svg'}
+ searchIconClickHandler={searchIconClickHandler}
+ onEnterHandler={(e: { key: string }) => e.key === 'Enter' && navigateToSearchResults()}
+ placeHolder={`Search for ${activeCard}`}
/>
-
- {
- if (searchTerm) {
- navigateToSearchResults()
- }
- e.preventDefault()
- }}
- alt={'search icon'}
- />
-
-
+