Browse Source

ref(ui): Fix t() parameterization in issueList header (#30601)

Evan Purkhiser 3 years ago
parent
commit
2891033fbf
1 changed files with 7 additions and 4 deletions
  1. 7 4
      static/app/views/issueList/header.tsx

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

@@ -105,11 +105,14 @@ function IssueListHeader({
           <Button
             size="small"
             data-test-id="real-time"
-            title={t('%s real-time updates', realtimeActive ? t('Pause') : t('Enable'))}
+            title={
+              realtimeActive
+                ? t('Pause real-time updates')
+                : t('Enable real-time updates')
+            }
+            icon={realtimeActive ? <IconPause size="xs" /> : <IconPlay size="xs" />}
             onClick={() => onRealtimeChange(!realtimeActive)}
-          >
-            {realtimeActive ? <IconPause size="xs" /> : <IconPlay size="xs" />}
-          </Button>
+          />
         </ButtonBar>
       </Layout.HeaderActions>
       <StyledGlobalEventProcessingAlert projects={selectedProjects} />