diff --git a/apps/scandic-web/components/ContentType/DestinationPage/DestinationOverviewPage/DestinationSearch/destinationSearch.module.css b/apps/scandic-web/components/ContentType/DestinationPage/DestinationOverviewPage/DestinationSearch/destinationSearch.module.css index d7a8d5057..240b5246d 100644 --- a/apps/scandic-web/components/ContentType/DestinationPage/DestinationOverviewPage/DestinationSearch/destinationSearch.module.css +++ b/apps/scandic-web/components/ContentType/DestinationPage/DestinationOverviewPage/DestinationSearch/destinationSearch.module.css @@ -14,6 +14,10 @@ text-align: left; } +.displayAsPlaceholder { + color: var(--UI-Text-Placeholder); +} + .icon { background: var(--Base-Button-Primary-Fill-Normal); width: 40px; @@ -88,3 +92,15 @@ transform: translateY(0); } } + +@media screen and (max-width: 767px) { + .desktopSearch { + display: none; + } +} + +@media screen and (min-width: 768px) { + .mobileSearch { + display: none; + } +} diff --git a/apps/scandic-web/components/ContentType/DestinationPage/DestinationOverviewPage/DestinationSearch/index.tsx b/apps/scandic-web/components/ContentType/DestinationPage/DestinationOverviewPage/DestinationSearch/index.tsx index 5ba0c41c1..ee63c6a42 100644 --- a/apps/scandic-web/components/ContentType/DestinationPage/DestinationOverviewPage/DestinationSearch/index.tsx +++ b/apps/scandic-web/components/ContentType/DestinationPage/DestinationOverviewPage/DestinationSearch/index.tsx @@ -8,7 +8,6 @@ import { ModalOverlay, } from "react-aria-components" import { useIntl } from "react-intl" -import { useMediaQuery } from "usehooks-ts" import { IconButton } from "@scandic-hotels/design-system/IconButton" import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon" @@ -20,11 +19,10 @@ import styles from "./destinationSearch.module.css" export function DestinationSearch() { const intl = useIntl() - const displayInModal = useMediaQuery("(max-width: 767px)") return ( <> -