Process tags from a VideoGQL & use on VideoFeed (#293)
currently will select first item if multiple tags present for a given class if we want to change the UI I can make it process & display multiple values for gameTypes/tableSizes, but as of now it's meant to handle a single one CLOSES #288 Co-authored-by: Loewy <loewy@chainstarters.com> Reviewed-on: railbird/railbird-mobile#293 Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
This commit is contained in:
parent
050705c370
commit
203d343880
@ -540,6 +540,11 @@ export type GetFeedQuery = {
|
||||
createdAt: any;
|
||||
updatedAt: any;
|
||||
} | null;
|
||||
tags: Array<{
|
||||
__typename?: "VideoTag";
|
||||
name: string;
|
||||
tagClasses: Array<{ __typename?: "VideoTagClass"; name: string }>;
|
||||
}>;
|
||||
}>;
|
||||
pageInfo: {
|
||||
__typename?: "PageInfoGQL";
|
||||
@ -958,6 +963,12 @@ export const GetFeedDocument = gql`
|
||||
createdAt
|
||||
updatedAt
|
||||
}
|
||||
tags {
|
||||
tagClasses {
|
||||
name
|
||||
}
|
||||
name
|
||||
}
|
||||
}
|
||||
pageInfo {
|
||||
hasNextPage
|
||||
|
@ -32,6 +32,12 @@ query GetFeed($limit: Int! = 5, $after: String = null) {
|
||||
createdAt
|
||||
updatedAt
|
||||
}
|
||||
tags {
|
||||
tagClasses {
|
||||
name
|
||||
}
|
||||
name
|
||||
}
|
||||
}
|
||||
pageInfo {
|
||||
hasNextPage
|
||||
|
Loading…
Reference in New Issue
Block a user