diff --git a/src/lib/AppRegistry.tsx b/src/lib/AppRegistry.tsx index 98acdce7b8..16346fa977 100644 --- a/src/lib/AppRegistry.tsx +++ b/src/lib/AppRegistry.tsx @@ -17,16 +17,11 @@ import HomeScene from "./Scenes/Home" import renderWithLoadProgress from "./utils/renderWithLoadProgress" import { Schema, screenTrack as track } from "./utils/track" -// FIXME: This isnt being used -// Analytics wrapper for all of our top level React components -// function AddTrack(_pageName: string) { -// return component => component -// } - interface ArtistProps { artistID: string isPad: boolean } + const Artist: React.SFC = track(props => { return { context_screen: Schema.PageNames.ArtistPage, @@ -35,7 +30,7 @@ const Artist: React.SFC = track(props => { } })(props => ) -const Inbox: React.SFC<{}> = track<{}>(_props => { +const Inbox: React.SFC<{}> = track<{}>(() => { return { context_screen: Schema.PageNames.InboxPage, context_screen_owner_type: null } })(() => ) diff --git a/src/lib/Components/Artist/Articles/Article.tsx b/src/lib/Components/Artist/Articles/Article.tsx index 9d8dbedb12..d7219c4d63 100644 --- a/src/lib/Components/Artist/Articles/Article.tsx +++ b/src/lib/Components/Artist/Articles/Article.tsx @@ -7,20 +7,9 @@ import fonts from "lib/data/fonts" import SwitchBoard from "lib/NativeModules/SwitchBoard" import ImageView from "../../OpaqueImageView" -interface Props extends ViewProperties { - article: { - href: string - author: { - name - } - thumbnail_image: { - url - } - thumbnail_title: string - } -} +interface Props extends RelayProps, ViewProperties {} -class Article extends React.Component { +class Article extends React.Component { handleTap() { SwitchBoard.presentNavigationViewController(this, this.props.article.href) } @@ -101,16 +90,15 @@ export default createFragmentContainer( ` ) -// FIXME: This is being unused in code -// interface RelayProps { -// article: { -// thumbnail_title: string | null -// href: string | null -// author: { -// name: string | null -// } | null -// thumbnail_image: { -// url: string | null -// } | null -// } -// } +interface RelayProps { + article: { + thumbnail_title: string | null + href: string | null + author: { + name: string | null + } | null + thumbnail_image: { + url: string | null + } | null + } +} diff --git a/src/lib/Components/Artist/Articles/index.tsx b/src/lib/Components/Artist/Articles/index.tsx index 0ff9674953..88f5dba620 100644 --- a/src/lib/Components/Artist/Articles/index.tsx +++ b/src/lib/Components/Artist/Articles/index.tsx @@ -5,11 +5,11 @@ import { createFragmentContainer, graphql } from "react-relay" import SerifText from "../../Text/Serif" import Article from "./Article" -interface Props extends ViewProperties { +interface Props extends RelayProps, ViewProperties { articles: any[] } -class Articles extends React.Component { +class Articles extends React.Component { render() { const articles = this.props.articles return ( @@ -49,9 +49,8 @@ export default createFragmentContainer( ` ) -// FIXME: This is being unused in code -// interface RelayProps { -// articles: Array<{ -// __id: string -// } | null> | null -// } +interface RelayProps { + articles: Array<{ + __id: string + } | null> | null +} diff --git a/src/lib/Components/Artist/Artworks/index.tsx b/src/lib/Components/Artist/Artworks/index.tsx index b8ff7a9c1b..60a2d675c3 100644 --- a/src/lib/Components/Artist/Artworks/index.tsx +++ b/src/lib/Components/Artist/Artworks/index.tsx @@ -19,15 +19,7 @@ interface RenderSectionParams { mapPropsToArtworksConnection: (Props) => any } -interface Props extends ViewProperties { - artist: { - counts: { - for_sale_artworks: number - artworks: number - } - not_for_sale_artworks: any[] - for_sale_artworks: any[] - } +interface Props extends RelayProps, ViewProperties { relay: any } @@ -138,14 +130,13 @@ export default createFragmentContainer( ` ) -// FIXME: This is unused in code -// interface RelayProps { -// artist: { -// counts: { -// artworks: boolean | number | string | null -// for_sale_artworks: boolean | number | string | null -// } | null -// for_sale_artworks: Array | null -// not_for_sale_artworks: Array | null -// } -// } +interface RelayProps { + artist: { + counts: { + artworks: number | null + for_sale_artworks: number | null + } | null + for_sale_artworks: Array | null + not_for_sale_artworks: Array | null + } +} diff --git a/src/lib/Components/Artist/Biography.tsx b/src/lib/Components/Artist/Biography.tsx index adb7715790..018bf0b04b 100644 --- a/src/lib/Components/Artist/Biography.tsx +++ b/src/lib/Components/Artist/Biography.tsx @@ -9,9 +9,7 @@ import SerifText from "../Text/Serif" const sideMargin = Dimensions.get("window").width > 700 ? 50 : 0 -interface Props extends ViewProperties { - artist: any -} +interface Props extends RelayProps, ViewProperties {} class Biography extends React.Component { render() { @@ -70,10 +68,9 @@ export default createFragmentContainer( ` ) -// FIXME: This isn't being used in code -// interface RelayProps { -// artist: { -// bio: string | null -// blurb: string | null -// } -// } +interface RelayProps { + artist: { + bio: string | null + blurb: string | null + } +} diff --git a/src/lib/Components/Artist/Shows/Metadata.tsx b/src/lib/Components/Artist/Shows/Metadata.tsx index 29af3041fc..9b795cacbd 100644 --- a/src/lib/Components/Artist/Shows/Metadata.tsx +++ b/src/lib/Components/Artist/Shows/Metadata.tsx @@ -7,21 +7,7 @@ import SerifText from "lib/Components/Text/Serif" import colors from "lib/data/colors" import fonts from "lib/data/fonts" -interface Props extends ViewProperties { - show: { - name: string - kind: string - exhibition_period: string - location?: { - city: string - } - status_update?: string - status: string - partner?: { - name: string - } - } -} +interface Props extends RelayProps, ViewProperties {} class Metadata extends React.Component { render() { @@ -120,19 +106,18 @@ export default createFragmentContainer( ` ) -// FIXME: This isn't being used in code -// interface RelayProps { -// show: { -// kind: string | null -// name: string | null -// exhibition_period: string | null -// status_update: string | null -// status: string | null -// partner: { -// name: string | null -// } | null -// location: { -// city: string | null -// } | null -// } -// } +interface RelayProps { + show: { + kind: string | null + name: string | null + exhibition_period: string | null + status_update: string | null + status: string | null + partner: { + name: string | null + } | null + location: { + city: string | null + } | null + } +} diff --git a/src/lib/Components/Artist/Shows/Show.tsx b/src/lib/Components/Artist/Shows/Show.tsx index 4f9647ce0d..fb4f9565fe 100644 --- a/src/lib/Components/Artist/Shows/Show.tsx +++ b/src/lib/Components/Artist/Shows/Show.tsx @@ -6,13 +6,7 @@ import SwitchBoard from "../../../NativeModules/SwitchBoard" import OpaqueImageView from "../../OpaqueImageView" import Metadata from "./Metadata" -interface Props extends ViewProperties { - show: { - href: string - cover_image: { - url: string - } - } +interface Props extends RelayProps, ViewProperties { styles?: { container?: any image?: any @@ -56,12 +50,11 @@ export default createFragmentContainer( ` ) -// FIXME: This isn't being used in code -// interface RelayProps { -// show: { -// href: string | null -// cover_image: { -// url: string | null -// } | null -// } -// } +interface RelayProps { + show: { + href: string | null + cover_image: { + url: string | null + } | null + } +} diff --git a/src/lib/Components/Artist/Shows/SmallList.tsx b/src/lib/Components/Artist/Shows/SmallList.tsx index 5e963ccf54..94c6ea872d 100644 --- a/src/lib/Components/Artist/Shows/SmallList.tsx +++ b/src/lib/Components/Artist/Shows/SmallList.tsx @@ -6,9 +6,7 @@ import Show from "./Show" import colors from "lib/data/colors" -interface Props extends ViewProperties { - shows: any[] -} +interface Props extends RelayProps, ViewProperties {} interface State { dataSource: ListViewDataSource @@ -72,7 +70,6 @@ export default createFragmentContainer( ` ) -// FIXME: This isn't being used in code -// interface RelayProps { -// shows: Array<{} | null> | null -// } +interface RelayProps { + shows: Array<{} | null> | null +} diff --git a/src/lib/Components/Artist/Shows/VariableSizeShowsList.tsx b/src/lib/Components/Artist/Shows/VariableSizeShowsList.tsx index b9483577ee..c9a71a7771 100644 --- a/src/lib/Components/Artist/Shows/VariableSizeShowsList.tsx +++ b/src/lib/Components/Artist/Shows/VariableSizeShowsList.tsx @@ -5,7 +5,7 @@ import { LayoutChangeEvent, StyleSheet, View, ViewProperties, ViewStyle } from " import Show from "./Show" -interface Props extends ViewProperties { +interface Props extends RelayProps, ViewProperties { showSize: "medium" | "large" shows: any[] } @@ -102,9 +102,8 @@ export default createFragmentContainer( ` ) -// FIXME: This isn't being used in code -// interface RelayProps { -// shows: Array<{ -// __id: string -// } | null> | null -// } +interface RelayProps { + shows: Array<{ + __id: string + } | null> | null +} diff --git a/src/lib/Components/Consignments/Screens/Overview.tsx b/src/lib/Components/Consignments/Screens/Overview.tsx index 12f5d73edb..9cb44c1dce 100644 --- a/src/lib/Components/Consignments/Screens/Overview.tsx +++ b/src/lib/Components/Consignments/Screens/Overview.tsx @@ -180,9 +180,6 @@ export default class Info extends React.Component { const isPad = Dimensions.get("window").width > 700 - // TODO: Reenable when used - // const isPadHorizontal = Dimensions.get("window").height > 700 - return ( diff --git a/src/lib/Components/Consignments/Screens/Welcome.tsx b/src/lib/Components/Consignments/Screens/Welcome.tsx index 7064c6a73e..b9bf0aafc6 100644 --- a/src/lib/Components/Consignments/Screens/Welcome.tsx +++ b/src/lib/Components/Consignments/Screens/Welcome.tsx @@ -35,9 +35,6 @@ export default class Welcome extends React.Component { render() { const isPad = Dimensions.get("window").width > 700 - // TODO: Reenable when used - // const isPadHorizontal = Dimensions.get("window").height > 700 - const TOS = () => Terms of Sevice diff --git a/src/lib/Components/Consignments/Submission/geminiUploadToS3.ts b/src/lib/Components/Consignments/Submission/geminiUploadToS3.ts index 86bab1da59..1b0ce75d85 100644 --- a/src/lib/Components/Consignments/Submission/geminiUploadToS3.ts +++ b/src/lib/Components/Consignments/Submission/geminiUploadToS3.ts @@ -96,12 +96,9 @@ export const uploadFileToS3 = async (file: string, req: GeminiCredsInput, res: G const bucket = asset.policy_document.conditions.bucket const uploadURL = `https://${bucket}.s3.amazonaws.com` - // FIXME: This is being unused in 103; does this uploader work? - // const filename = file.split(/\//g).pop() - const data = { "Content-Type": "image/jpg", - key: geminiKey + "/${filename}", + key: geminiKey + "/${filename}", // NOTE: This form (which _looks_ like ES6 interpolation) is required by AWS AWSAccessKeyId: asset.credentials, acl: req.acl, success_action_status: asset.policy_document.conditions.success_action_status, diff --git a/src/lib/Components/Gene/About.tsx b/src/lib/Components/Gene/About.tsx index bd79f8da27..0b17e14d27 100644 --- a/src/lib/Components/Gene/About.tsx +++ b/src/lib/Components/Gene/About.tsx @@ -8,7 +8,7 @@ import Biography from "./Biography" import RelatedArtists from "../RelatedArtists" import Separator from "../Separator" -class About extends React.Component { +class About extends React.Component { render() { return ( @@ -56,15 +56,8 @@ export default createFragmentContainer( ` ) -// FIXME: This isn't being used in code -// interface RelayProps { -// gene: { -// trending_artists: Array | null -// } -// } - -interface RelayPropsWorkaround { +interface RelayProps { gene: { - trending_artists: any[] + trending_artists: Array | null } } diff --git a/src/lib/Components/Gene/__tests__/About-tests.tsx b/src/lib/Components/Gene/__tests__/About-tests.tsx index 2efcc6a6b0..0db2bf79ae 100644 --- a/src/lib/Components/Gene/__tests__/About-tests.tsx +++ b/src/lib/Components/Gene/__tests__/About-tests.tsx @@ -42,6 +42,6 @@ it("shows trending artists correctly", () => { ], } - const about = renderer.create().toJSON() + const about = renderer.create().toJSON() expect(about).toMatchSnapshot() }) diff --git a/src/lib/Components/Inbox/Conversations/ConversationSnippet.tsx b/src/lib/Components/Inbox/Conversations/ConversationSnippet.tsx index a9e03cb7b5..f53231d4b4 100644 --- a/src/lib/Components/Inbox/Conversations/ConversationSnippet.tsx +++ b/src/lib/Components/Inbox/Conversations/ConversationSnippet.tsx @@ -80,22 +80,7 @@ const SeparatorLine = styled.View` ${isPad ? "align-self: center; width: 708;" : ""}; ` -export interface Conversation { - id: string | null - to: { - name: string | null - } - last_message: string | null - last_message_at: string | null - is_last_message_to_user: boolean - last_message_open: string | null - items: Array<{ - item: any - }> -} - -interface Props { - conversation: Conversation +export interface Props extends RelayProps { onSelected?: () => void } @@ -241,20 +226,19 @@ export default createFragmentContainer( ` ) -// FIXME: This isn't being used in code -// interface RelayProps { -// conversation: { -// id: string | null -// to: { -// name: string -// } -// last_message: string -// last_message_at: string | null -// is_last_message_to_user: boolean -// last_message_open: string | null -// __typename: string -// items: Array<{ -// item: any -// } | null> | null -// } -// } +interface RelayProps { + conversation: { + id: string | null + to: { + name: string + } + last_message: string + last_message_at: string | null + is_last_message_to_user: boolean + last_message_open: string | null + __typename: string + items: Array<{ + item: any + } | null> | null + } +} diff --git a/src/lib/Components/Inbox/Conversations/Preview/__tests__/ShowPreview-tests.tsx b/src/lib/Components/Inbox/Conversations/Preview/__tests__/ShowPreview-tests.tsx index 03e984d97d..0b5622cea0 100644 --- a/src/lib/Components/Inbox/Conversations/Preview/__tests__/ShowPreview-tests.tsx +++ b/src/lib/Components/Inbox/Conversations/Preview/__tests__/ShowPreview-tests.tsx @@ -26,17 +26,3 @@ const show = { }, fair: null, } - -// FIXME: This isn't being used in code -// const booth = { -// name: "Catty Booth", -// cover_image: { -// url: "https://d32dm0rphc51dk.cloudfront.net/bJ9I_vJX9ksaKFJAkOAIKg/normalized.jpg", -// }, -// partner: { -// name: "Catty Partner", -// }, -// fair: { -// name: "Catty Fair", -// }, -// } diff --git a/src/lib/Components/Inbox/Conversations/__stories__/ConversationSnippet.story.tsx b/src/lib/Components/Inbox/Conversations/__stories__/ConversationSnippet.story.tsx index 39568737d2..54671e68ed 100644 --- a/src/lib/Components/Inbox/Conversations/__stories__/ConversationSnippet.story.tsx +++ b/src/lib/Components/Inbox/Conversations/__stories__/ConversationSnippet.story.tsx @@ -4,9 +4,9 @@ import React from "react" import "react-native" import { ScrollView } from "react-native" -import { Conversation, ConversationSnippet } from "../ConversationSnippet" +import { ConversationSnippet } from "../ConversationSnippet" -const conversation: Conversation = { +const conversation = { id: "582", to: { name: "ACA Galleries" }, last_message: "Karl and Anna... Fab!", @@ -31,11 +31,11 @@ const conversation: Conversation = { } storiesOf("Conversations/Snippet") - .add("Single row", () => ) + .add("Single row", () => ) .add("A few threads", () => - - - + + + ) diff --git a/src/lib/Components/Inbox/Conversations/__tests__/ConversationSnippet-tests.tsx b/src/lib/Components/Inbox/Conversations/__tests__/ConversationSnippet-tests.tsx index f1bf937a1f..a7a0e74ccb 100644 --- a/src/lib/Components/Inbox/Conversations/__tests__/ConversationSnippet-tests.tsx +++ b/src/lib/Components/Inbox/Conversations/__tests__/ConversationSnippet-tests.tsx @@ -6,12 +6,12 @@ import * as renderer from "react-test-renderer" import ConversationSnippet from "../ConversationSnippet" it("renders correctly with an artwork", () => { - const tree = renderer.create() + const tree = renderer.create() expect(tree).toMatchSnapshot() }) it("renders correctly with a show", () => { - const tree = renderer.create() + const tree = renderer.create() expect(tree).toMatchSnapshot() }) diff --git a/src/lib/Components/RelatedArtists/RelatedArtist.tsx b/src/lib/Components/RelatedArtists/RelatedArtist.tsx index 285c8c70ec..24aebf05cc 100644 --- a/src/lib/Components/RelatedArtists/RelatedArtist.tsx +++ b/src/lib/Components/RelatedArtists/RelatedArtist.tsx @@ -8,7 +8,13 @@ import fonts from "lib/data/fonts" import SwitchBoard from "lib/NativeModules/SwitchBoard" import ImageView from "../OpaqueImageView" -class RelatedArtist extends React.Component { +interface Props extends RelayProps { + imageSize: { + width: number + } +} + +class RelatedArtist extends React.Component { handleTap() { SwitchBoard.presentNavigationViewController(this, this.props.artist.href) } @@ -87,17 +93,17 @@ export default createFragmentContainer( ` ) -// FIXME: This is not being used in code -// interface RelayProps { -// artist: { -// href: string | null -// name: string | null -// counts: { -// for_sale_artworks: boolean | number | string | null -// artworks: boolean | number | string | null -// } | null -// image: { -// url: string | null -// } | null -// } -// } +interface RelayProps { + artist: { + __id: string | null + href: string | null + name: string | null + counts: { + for_sale_artworks: boolean | number | string | null + artworks: boolean | number | string | null + } | null + image: { + url: string | null + } | null + } +} diff --git a/src/lib/Components/RelatedArtists/index.tsx b/src/lib/Components/RelatedArtists/index.tsx index f62f7cb0a6..04185b96b9 100644 --- a/src/lib/Components/RelatedArtists/index.tsx +++ b/src/lib/Components/RelatedArtists/index.tsx @@ -122,5 +122,14 @@ export default createFragmentContainer( interface RelayProps { artists: Array<{ __id: string + href: string | null + name: string | null + counts: { + for_sale_artworks: boolean | number | string | null + artworks: boolean | number | string | null + } | null + image: { + url: string | null + } | null } | null> | null } diff --git a/src/lib/Containers/Artist.tsx b/src/lib/Containers/Artist.tsx index b8213e6db1..6a86592a82 100644 --- a/src/lib/Containers/Artist.tsx +++ b/src/lib/Containers/Artist.tsx @@ -20,9 +20,7 @@ const TABS = { SHOWS: "SHOWS", } -interface Props extends ViewProperties { - artist: any -} +interface Props extends RelayProps, ViewProperties {} export class Artist extends React.Component { state: { @@ -157,17 +155,24 @@ export default createFragmentContainer( ` ) -// FIXME: This is currently unused in code -// interface RelayProps { -// artist: { -// _id: string -// id: string -// has_metadata: boolean | null -// counts: { -// artworks: boolean | number | string | null -// partner_shows: boolean | number | string | null -// related_artists: boolean | number | string | null -// articles: boolean | number | string | null -// } | null -// } -// } +interface RelayProps { + artist: { + _id: string | null + id: string | null + birthday: string | null + counts: { + articles: boolean | number | string | null + artworks: boolean | number | string | null + follows: boolean | number | string | null + partner_shows: boolean | number | string | null + related_artists: boolean | number | string | null + } | null + has_metadata: boolean | null + name: string | null + nationality: string | null + current_shows: Array | null + upcoming_shows: Array | null + past_small_shows: Array | null + past_large_shows: Array | null + } +} diff --git a/src/lib/Containers/Conversation.tsx b/src/lib/Containers/Conversation.tsx index db0f83a59f..8be005691b 100644 --- a/src/lib/Containers/Conversation.tsx +++ b/src/lib/Containers/Conversation.tsx @@ -19,9 +19,6 @@ import Separator from "../Components/Separator" import { markLastMessageRead } from "../Components/Inbox/Conversations/MarkReadMessage" -// tslint:disable-next-line:no-var-requires -// const chevron: ImageURISource = require("../../../images/horizontal_chevron.png") - const Container = styled.View` flex: 1; flex-direction: column; diff --git a/src/lib/Containers/__tests__/Artist-tests.tsx b/src/lib/Containers/__tests__/Artist-tests.tsx index 0c93e05a24..a0e9543615 100644 --- a/src/lib/Containers/__tests__/Artist-tests.tsx +++ b/src/lib/Containers/__tests__/Artist-tests.tsx @@ -7,36 +7,36 @@ import { Artist } from "../Artist" describe("availableTabs", () => { it("returns nothing if artist has no metadata, shows, or works", () => { const artist = new Artist() - artist.props = artistProps(false) + artist.props = artistProps(false) as any expect(artist.availableTabs()).toEqual([]) }) it("returns About tab if artist has metadata", () => { const artist = new Artist() - artist.props = artistProps(true) + artist.props = artistProps(true) as any expect(artist.availableTabs()).toEqual(["ABOUT"]) }) it("returns About tab if artist has articles", () => { - const artist = new Artist() + const artist = new Artist() as any artist.props = artistProps(false, { articles: 1 }) expect(artist.availableTabs()).toEqual(["ABOUT"]) }) it("returns Shows tab if artist has shows", () => { - const artist = new Artist() + const artist = new Artist() as any artist.props = artistProps(false, { partner_shows: 2 }) expect(artist.availableTabs()).toEqual(["SHOWS"]) }) it("returns Works tab if artist has works", () => { - const artist = new Artist() + const artist = new Artist() as any artist.props = artistProps(false, { artworks: 2 }) expect(artist.availableTabs()).toEqual(["WORKS"]) }) it("returns all three tabs if artist has metadata, works, and shows", () => { - const artist = new Artist() + const artist = new Artist() as any artist.props = artistProps(true, { artworks: 1, partner_shows: 1 }) expect(artist.availableTabs()).toEqual(["ABOUT", "WORKS", "SHOWS"]) }) @@ -44,7 +44,7 @@ describe("availableTabs", () => { describe("after rendering", () => { it("mounts with Works tab selected if works exist", () => { - const artist = new Artist() + const artist = new Artist() as any artist.props = artistProps(false, { artworks: 5 }) const worksTabIndex = artist.availableTabs().indexOf("WORKS") @@ -54,7 +54,7 @@ describe("after rendering", () => { }) it("mounts at the first tab index if artist has no works", () => { - const artist = new Artist() + const artist = new Artist() as any artist.props = artistProps(true, { partner_shows: 1 }) artist.componentWillMount() @@ -64,17 +64,19 @@ describe("after rendering", () => { describe("layout", () => { it("works as expected with no tabs", () => { - const artist = renderer.create() + const artist = renderer.create() expect(artist.toJSON()).toMatchSnapshot() }) it("works as expected with one tab", () => { - const artist = renderer.create() + const artist = renderer.create() expect(artist.toJSON()).toMatchSnapshot() }) it("works as expected with three tabs", () => { - const artist = renderer.create() + const artist = renderer.create( + + ) expect(artist.toJSON()).toMatchSnapshot() }) }) @@ -85,6 +87,8 @@ const artistProps = (hasMetadata: boolean, counts?: any) => { } return { artist: { + _id: null, + id: null, has_metadata: hasMetadata, counts, }, diff --git a/src/lib/Containers/__tests__/__snapshots__/Artist-tests.tsx.snap b/src/lib/Containers/__tests__/__snapshots__/Artist-tests.tsx.snap index 0cde00c554..4fe6bdcb00 100644 --- a/src/lib/Containers/__tests__/__snapshots__/Artist-tests.tsx.snap +++ b/src/lib/Containers/__tests__/__snapshots__/Artist-tests.tsx.snap @@ -17,12 +17,14 @@ exports[`layout works as expected with no tabs 1`] = `
@@ -55,12 +57,14 @@ exports[`layout works as expected with one tab 1`] = `
@@ -74,12 +78,14 @@ exports[`layout works as expected with one tab 1`] = ` @@ -106,11 +112,13 @@ exports[`layout works as expected with three tabs 1`] = `
@@ -138,11 +146,13 @@ exports[`layout works as expected with three tabs 1`] = ` diff --git a/src/lib/Scenes/Home/Components/ForYou/Components/ArtworkCarousel.tsx b/src/lib/Scenes/Home/Components/ForYou/Components/ArtworkCarousel.tsx index 5e077c6148..0489df1402 100644 --- a/src/lib/Scenes/Home/Components/ForYou/Components/ArtworkCarousel.tsx +++ b/src/lib/Scenes/Home/Components/ForYou/Components/ArtworkCarousel.tsx @@ -67,7 +67,9 @@ export class ArtworkCarousel extends React.Component { - console.error("ArtworkCarousel.tsx |", error) + if (error) { + // console.error("ArtworkCarousel.tsx |", error) + } this.setState({ didPerformFetch: true,