|
@@ -13,11 +13,12 @@ import {tokenPreview} from 'sentry/views/settings/organizationAuthTokens';
|
|
|
type Props = {
|
|
|
onRemove: (token: InternalAppApiToken) => void;
|
|
|
token: InternalAppApiToken;
|
|
|
+ tokenPrefix?: string;
|
|
|
};
|
|
|
|
|
|
// TODO: After the BE portion of code changes have been released, remove the conditional rendering of the token.
|
|
|
// We are currently doing the conditional logic to do safe blue/green deploys and handle contract changes.
|
|
|
-function ApiTokenRow({token, onRemove}: Props) {
|
|
|
+function ApiTokenRow({token, onRemove, tokenPrefix = ''}: Props) {
|
|
|
return (
|
|
|
<StyledPanelItem>
|
|
|
<Controls>
|
|
@@ -26,7 +27,8 @@ function ApiTokenRow({token, onRemove}: Props) {
|
|
|
getDynamicText({
|
|
|
value: token.tokenLastCharacters,
|
|
|
fixed: 'ABCD',
|
|
|
- })
|
|
|
+ }),
|
|
|
+ tokenPrefix
|
|
|
)}
|
|
|
</TokenPreview>
|
|
|
<ButtonWrapper>
|