Просмотр исходного кода

fix(issues): Remove color from for review tab badge (#49444)

Scott Cooper 1 год назад
Родитель
Сommit
3e65076053
2 измененных файлов с 1 добавлено и 9 удалено
  1. 0 5
      static/app/utils/theme.tsx
  2. 1 4
      static/app/views/issueList/header.tsx

+ 0 - 5
static/app/utils/theme.tsx

@@ -488,11 +488,6 @@ const generateBadgeTheme = (colors: BaseColors) => ({
     indicatorColor: colors.gray100,
     indicatorColor: colors.gray100,
     color: colors.gray500,
     color: colors.gray500,
   },
   },
-  review: {
-    background: colors.purple300,
-    indicatorColor: colors.purple300,
-    color: colors.white,
-  },
   warning: {
   warning: {
     background: colors.yellow300,
     background: colors.yellow300,
     indicatorColor: colors.yellow300,
     indicatorColor: colors.yellow300,

+ 1 - 4
static/app/views/issueList/header.tsx

@@ -38,7 +38,6 @@ type IssueListHeaderProps = {
 
 
 type IssueListHeaderTabProps = {
 type IssueListHeaderTabProps = {
   name: string;
   name: string;
-  query: string;
   count?: number;
   count?: number;
   hasMore?: boolean;
   hasMore?: boolean;
   tooltipHoverable?: boolean;
   tooltipHoverable?: boolean;
@@ -49,7 +48,6 @@ function IssueListHeaderTabContent({
   count = 0,
   count = 0,
   hasMore = false,
   hasMore = false,
   name,
   name,
-  query,
   tooltipHoverable,
   tooltipHoverable,
   tooltipTitle,
   tooltipTitle,
 }: IssueListHeaderTabProps) {
 }: IssueListHeaderTabProps) {
@@ -62,7 +60,7 @@ function IssueListHeaderTabContent({
     >
     >
       {name}{' '}
       {name}{' '}
       {count > 0 && (
       {count > 0 && (
-        <Badge type={query === Query.FOR_REVIEW && count > 0 ? 'review' : 'default'}>
+        <Badge>
           <QueryCount hideParens count={count} max={hasMore ? TAB_MAX_COUNT : 1000} />
           <QueryCount hideParens count={count} max={hasMore ? TAB_MAX_COUNT : 1000} />
         </Badge>
         </Badge>
       )}
       )}
@@ -154,7 +152,6 @@ function IssueListHeader({
                         name={queryName}
                         name={queryName}
                         count={queryCounts[tabQuery]?.count}
                         count={queryCounts[tabQuery]?.count}
                         hasMore={queryCounts[tabQuery]?.hasMore}
                         hasMore={queryCounts[tabQuery]?.hasMore}
-                        query={tabQuery}
                       />
                       />
                     </GuideAnchor>
                     </GuideAnchor>
                   </TabList.Item>
                   </TabList.Item>