From 9e0b4cac920bab7a8e17c0c869e863e1ce6eee97 Mon Sep 17 00:00:00 2001 From: Antoine Garcia Date: Fri, 11 Jun 2021 12:43:10 +0200 Subject: [PATCH] (PC-9075) Replace skeleton by new custom made on Search page --- .../__snapshots__/Favorites.test.tsx.snap | 3255 ++++++++++++++++- .../search/components/Placeholders.tsx | 68 +- 2 files changed, 3269 insertions(+), 54 deletions(-) diff --git a/src/features/favorites/pages/__tests__/__snapshots__/Favorites.test.tsx.snap b/src/features/favorites/pages/__tests__/__snapshots__/Favorites.test.tsx.snap index acd70e49a51..843a5b1869e 100644 --- a/src/features/favorites/pages/__tests__/__snapshots__/Favorites.test.tsx.snap +++ b/src/features/favorites/pages/__tests__/__snapshots__/Favorites.test.tsx.snap @@ -198,6 +198,61 @@ exports[`Favorites component should render correctly 1`] = ` ] } /> + + + + > + + + + + + + + + + + + + + + + + + + + + + + > + + + + + + + + + + + + + + + + + + + + + + + > + + + + + + + + + + + + + + + + + + + + + + + > + + + + + + + + + + + + + + + + + + + + + + + > + + + + + + + + + + + + + + + + + + + + + + + > + + + + + + + + + + + + + + + + + + + + + + + > + + + + + + + + + + + + + + + + + + + + + + + > + + + + + + + + + + + + + + + + + + + + + + + > + + + + + + + + + + + + + + + + + + + + + + + > + + + + + + + + + + + + + + + + + + + + + + ( - + ) + const TextPlaceholder = ({ width, height }: { width: number; height?: number }) => ( - + ) export const NumberOfResultsPlaceholder = () => ( - - - + ) -export const HitPlaceholder = () => { - const x = imageWidth + getSpacing(4) - return ( - - - - - - - - - - - - - - - - - - - - ) -} +export const HitPlaceholder = () => ( + + + + + + + + + + + + + + + +) const Container = styled.View({ marginHorizontal: getSpacing(6) }) const Row = styled.View({ flexDirection: 'row', alignItems: 'center' })