fix(client): remove react-bootstrap for user token widget (#52340)

This commit is contained in:
Tom
2023-11-15 07:31:20 -06:00
committed by GitHub
parent 6cb175d5a8
commit 2251b5eaef
2 changed files with 3 additions and 23 deletions
@@ -1,16 +0,0 @@
.btn-info {
background-color: var(--highlight-color);
color: var(--highlight-background);
border-color: var(--highlight-background);
}
.btn-info:hover,
.btn-info:focus {
color: var(--highlight-color);
background-color: var(--highlight-background);
border-color: var(--highlight-background);
}
.user-token p {
color: var(--highlight-color);
}
@@ -1,15 +1,12 @@
import { Button } from '@freecodecamp/react-bootstrap';
import React, { Component } from 'react';
import type { TFunction } from 'i18next';
import { withTranslation } from 'react-i18next';
import { connect } from 'react-redux';
import { Panel } from '@freecodecamp/ui';
import { Panel, Button } from '@freecodecamp/ui';
import { deleteUserToken } from '../../redux/actions';
import { FullWidthRow, Spacer } from '../helpers';
import './user-token.css';
type UserTokenProps = {
deleteUserToken: () => void;
t: TFunction;
@@ -40,9 +37,8 @@ class UserToken extends Component<UserTokenProps> {
<Spacer size='small' />
<Button
block={true}
bsSize='lg'
bsStyle='danger'
className='btn-info'
size='large'
variant='info'
data-cy='delete-user-token'
onClick={this.deleteToken}
type='button'