From b6a633ca3175b1a163636cb31a4d4bc70b20e545 Mon Sep 17 00:00:00 2001 From: Emma Indal Date: Mon, 24 May 2021 09:41:33 +0200 Subject: [PATCH] it's 2021 Signed-off-by: Emma Indal Signed-off-by: Eric Peterson --- packages/app/src/components/search/SearchPage.tsx | 2 +- .../search/src/components/SearchBarNext/index.tsx | 2 +- .../SearchFiltersNext/FiltersButtonNext.tsx | 2 +- .../SearchFiltersNext/SearchFiltersNext.tsx | 2 +- .../src/components/SearchFiltersNext/index.tsx | 2 +- .../components/SearchResultNext/SearchResultNext.tsx | 12 ++++++++---- .../search/src/components/SearchResultNext/index.tsx | 2 +- 7 files changed, 14 insertions(+), 10 deletions(-) diff --git a/packages/app/src/components/search/SearchPage.tsx b/packages/app/src/components/search/SearchPage.tsx index 59b4168a18..d0f1a93e81 100644 --- a/packages/app/src/components/search/SearchPage.tsx +++ b/packages/app/src/components/search/SearchPage.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2020 Spotify AB + * Copyright 2021 Spotify AB * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/plugins/search/src/components/SearchBarNext/index.tsx b/plugins/search/src/components/SearchBarNext/index.tsx index 20ba7d9c55..5f46a6dda6 100644 --- a/plugins/search/src/components/SearchBarNext/index.tsx +++ b/plugins/search/src/components/SearchBarNext/index.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2020 Spotify AB + * Copyright 2021 Spotify AB * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/plugins/search/src/components/SearchFiltersNext/FiltersButtonNext.tsx b/plugins/search/src/components/SearchFiltersNext/FiltersButtonNext.tsx index 8da6e26028..f7628714ca 100644 --- a/plugins/search/src/components/SearchFiltersNext/FiltersButtonNext.tsx +++ b/plugins/search/src/components/SearchFiltersNext/FiltersButtonNext.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2020 Spotify AB + * Copyright 2021 Spotify AB * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/plugins/search/src/components/SearchFiltersNext/SearchFiltersNext.tsx b/plugins/search/src/components/SearchFiltersNext/SearchFiltersNext.tsx index a751a25273..d94b8021ef 100644 --- a/plugins/search/src/components/SearchFiltersNext/SearchFiltersNext.tsx +++ b/plugins/search/src/components/SearchFiltersNext/SearchFiltersNext.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2020 Spotify AB + * Copyright 2021 Spotify AB * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/plugins/search/src/components/SearchFiltersNext/index.tsx b/plugins/search/src/components/SearchFiltersNext/index.tsx index 999db8deb5..dd35bd3624 100644 --- a/plugins/search/src/components/SearchFiltersNext/index.tsx +++ b/plugins/search/src/components/SearchFiltersNext/index.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2020 Spotify AB + * Copyright 2021 Spotify AB * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/plugins/search/src/components/SearchResultNext/SearchResultNext.tsx b/plugins/search/src/components/SearchResultNext/SearchResultNext.tsx index ec738e839c..c4e3edaa4c 100644 --- a/plugins/search/src/components/SearchResultNext/SearchResultNext.tsx +++ b/plugins/search/src/components/SearchResultNext/SearchResultNext.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2020 Spotify AB + * Copyright 2021 Spotify AB * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,9 +22,13 @@ import { useSearch } from '../SearchContext'; type ChildrenArguments = { results: SearchResult[]; -} +}; -export const SearchResultNext = ({ children }: { children: (results: ChildrenArguments) => JSX.Element}) => { +export const SearchResultNext = ({ + children, +}: { + children: (results: ChildrenArguments) => JSX.Element; +}) => { const { result: { loading, error, value }, } = useSearch(); @@ -41,7 +45,7 @@ export const SearchResultNext = ({ children }: { children: (results: ChildrenArg } if (!value) { - return ; + return ; } return children({ results: value.results }); diff --git a/plugins/search/src/components/SearchResultNext/index.tsx b/plugins/search/src/components/SearchResultNext/index.tsx index 1a21491289..73fabfdc7d 100644 --- a/plugins/search/src/components/SearchResultNext/index.tsx +++ b/plugins/search/src/components/SearchResultNext/index.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2020 Spotify AB + * Copyright 2021 Spotify AB * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.