Skip to content

Commit

Permalink
misc: remove display notice commision condition
Browse files Browse the repository at this point in the history
  • Loading branch information
tjsry0466 committed Sep 13, 2024
1 parent 4bdcde5 commit 54d7d1b
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 10 deletions.
1 change: 0 additions & 1 deletion apps/web/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,6 @@ type ProductOutput {
"""
isMyWishlist: Boolean
isPrivate: Boolean!
isProfitUrl: Boolean!
mallId: Int
"""
์‡ผํ•‘๋ชฐ ์ด๋ฆ„
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function ProductDetailLayout({
<CommunityReaction product={product} />
<RelatedProductsContainer product={product} />
<PopularProductsContainer product={product} />
{product.isProfitUrl && <NoticeProfitLink />}
<NoticeProfitLink />
</ProductInfoLayout>
<BottomCTA product={product} isUserLogin={isUserLogin} />
</div>
Expand Down
1 change: 0 additions & 1 deletion apps/web/src/graphql/interface/product.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ export interface IProduct {
prices?: IProductPrice[];
searchAfter?: string[];
isMyWishlist: boolean;
isProfitUrl: boolean;
categoryName?: string;
}

Expand Down
1 change: 0 additions & 1 deletion apps/web/src/graphql/product.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export const QueryProduct = gql`
detailUrl
isHot
isEnd
isProfitUrl
price
postedAt
thumbnail
Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/shared/api/gql/gql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const documents = {
types.QueryUnreadNotificationsCountDocument,
'\n mutation MutationAddPushToken($token: String!, $tokenType: TokenType!) {\n addPushToken(token: $token, tokenType: $tokenType)\n }\n':
types.MutationAddPushTokenDocument,
'\n query product($id: Int!) {\n product(id: $id) {\n id\n providerId\n category\n categoryId\n mallId\n title\n url\n detailUrl\n isHot\n isEnd\n isProfitUrl\n price\n postedAt\n thumbnail\n wishlistCount\n positiveCommunityReactionCount\n negativeCommunityReactionCount\n provider {\n id\n name\n nameKr\n host\n }\n viewCount\n mallName\n guides {\n id\n title\n content\n }\n prices {\n id\n target\n type\n price\n createdAt\n }\n isMyWishlist\n categoryName\n }\n }\n':
'\n query product($id: Int!) {\n product(id: $id) {\n id\n providerId\n category\n categoryId\n mallId\n title\n url\n detailUrl\n isHot\n isEnd\n price\n postedAt\n thumbnail\n wishlistCount\n positiveCommunityReactionCount\n negativeCommunityReactionCount\n provider {\n id\n name\n nameKr\n host\n }\n viewCount\n mallName\n guides {\n id\n title\n content\n }\n prices {\n id\n target\n type\n price\n createdAt\n }\n isMyWishlist\n categoryName\n }\n }\n':
types.ProductDocument,
'\n query productGuides($productId: Int!) {\n productGuides(productId: $productId) {\n id\n title\n content\n }\n }\n':
types.ProductGuidesDocument,
Expand Down Expand Up @@ -155,7 +155,7 @@ export function graphql(
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
*/
export function graphql(
source: '\n query product($id: Int!) {\n product(id: $id) {\n id\n providerId\n category\n categoryId\n mallId\n title\n url\n detailUrl\n isHot\n isEnd\n isProfitUrl\n price\n postedAt\n thumbnail\n wishlistCount\n positiveCommunityReactionCount\n negativeCommunityReactionCount\n provider {\n id\n name\n nameKr\n host\n }\n viewCount\n mallName\n guides {\n id\n title\n content\n }\n prices {\n id\n target\n type\n price\n createdAt\n }\n isMyWishlist\n categoryName\n }\n }\n',
source: '\n query product($id: Int!) {\n product(id: $id) {\n id\n providerId\n category\n categoryId\n mallId\n title\n url\n detailUrl\n isHot\n isEnd\n price\n postedAt\n thumbnail\n wishlistCount\n positiveCommunityReactionCount\n negativeCommunityReactionCount\n provider {\n id\n name\n nameKr\n host\n }\n viewCount\n mallName\n guides {\n id\n title\n content\n }\n prices {\n id\n target\n type\n price\n createdAt\n }\n isMyWishlist\n categoryName\n }\n }\n',
): typeof import('./graphql').ProductDocument;
/**
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
Expand Down
3 changes: 0 additions & 3 deletions apps/web/src/shared/api/gql/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,6 @@ export type ProductOutput = {
/** ๋กœ๊ทธ์ธํ•œ ์‚ฌ์šฉ์ž์˜ ์œ„์‹œ๋ฆฌ์ŠคํŠธ ์—ฌ๋ถ€ */
isMyWishlist?: Maybe<Scalars['Boolean']['output']>;
isPrivate: Scalars['Boolean']['output'];
isProfitUrl: Scalars['Boolean']['output'];
mallId?: Maybe<Scalars['Int']['output']>;
/** ์‡ผํ•‘๋ชฐ ์ด๋ฆ„ */
mallName?: Maybe<Scalars['String']['output']>;
Expand Down Expand Up @@ -963,7 +962,6 @@ export type ProductQuery = {
detailUrl?: string | null;
isHot?: boolean | null;
isEnd?: boolean | null;
isProfitUrl: boolean;
price?: string | null;
postedAt: any;
thumbnail?: string | null;
Expand Down Expand Up @@ -1314,7 +1312,6 @@ export const ProductDocument = new TypedDocumentString(`
detailUrl
isHot
isEnd
isProfitUrl
price
postedAt
thumbnail
Expand Down
1 change: 0 additions & 1 deletion apps/web/src/shared/api/product/product.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ const QueryProduct = graphql(`
detailUrl
isHot
isEnd
isProfitUrl
price
postedAt
thumbnail
Expand Down

0 comments on commit 54d7d1b

Please sign in to comment.