Skip to content

Commit a57da18

Browse files
committed
fix: styling issues in api token
1 parent bf2d3c7 commit a57da18

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

src/GlobalConfigurations/Authorization/APITokens/ApiTokens.component.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ const ApiTokens = () => {
121121
className="flex search__clear-button"
122122
type="button"
123123
onClick={clearSearch}
124-
aria-label="Clear search"
124+
aria-label="Clear Search"
125125
>
126126
<Clear className="icon-dim-18 icon-n4 dc__vertical-align-middle" />
127127
</button>
@@ -139,7 +139,7 @@ const ApiTokens = () => {
139139
const renderAPITokenRoutes = (): JSX.Element => {
140140
return (
141141
<>
142-
<div data-testid="api-token-page" className="api-token-container bcn-0">
142+
<div data-testid="api-token-page" className="api-token-container flexbox-col flex-grow-1">
143143
<Switch>
144144
<Route path={`${path}/list`}>
145145
<APITokenList
@@ -200,6 +200,7 @@ const ApiTokens = () => {
200200
subTitle={EMPTY_STATE_STATUS.GENERATE_API_TOKEN.SUBTITLE}
201201
isButtonAvailable
202202
renderButton={renderGenerateButton}
203+
classname="flex-grow-1"
203204
/>
204205
)
205206
}

src/GlobalConfigurations/Authorization/APITokens/GenerateActionButton.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,7 @@ import React from 'react'
22
import { ButtonWithLoader } from '../../../components/common'
33
import { GenerateActionButtonType } from './authorization.type'
44

5-
function GenerateActionButton({
6-
loader,
7-
onCancel,
8-
onSave,
9-
buttonText,
10-
regenerateButton
11-
}: GenerateActionButtonType) {
5+
const GenerateActionButton = ({ loader, onCancel, onSave, buttonText, regenerateButton }: GenerateActionButtonType) => {
126
return (
137
<div
148
className={`modal__buttons w-100 pl-16 pt-16 pr-16 flex ${

0 commit comments

Comments
 (0)