diff --git a/src/App.scss b/src/App.scss index ac87c0b8..8b5680be 100644 --- a/src/App.scss +++ b/src/App.scss @@ -62,6 +62,7 @@ // for example media object known from OOCSS. @import 'scss/objects/review-page'; @import 'scss/objects/homepage'; +@import 'scss/objects/home-header'; // ===================================================================== // 6. Components @@ -79,7 +80,6 @@ @import 'scss/components/subtitle'; @import 'scss/components/location-new'; @import 'scss/components/location-select'; -@import 'scss/components/place-new'; // ===================================================================== // 7. Vendors diff --git a/src/components/HomeHeader.tsx b/src/components/HomeHeader.tsx new file mode 100644 index 00000000..0951cd7a --- /dev/null +++ b/src/components/HomeHeader.tsx @@ -0,0 +1,25 @@ +import Subtitle from './Subtitle'; +import LocationSelect from './LocationSelect'; +import { Location } from '../types/sparkeats'; + +type HomeHeaderProps = { + locations: Location[]; +}; + +function HomeHeader({ locations }: HomeHeaderProps) { + return ( +
+ ); +} + +export default HomeHeader; diff --git a/src/components/home/HomePage.tsx b/src/components/home/HomePage.tsx index ddd2b887..ae93878e 100644 --- a/src/components/home/HomePage.tsx +++ b/src/components/home/HomePage.tsx @@ -1,10 +1,11 @@ +import HomeHeader from '../HomeHeader'; import { LocationCards } from './LocationCards'; import type { Location } from '../../types/sparkeats'; export function HomePage({ locations }: { locations: Location[] }) { return (