mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-24 18:56:32 -05:00
fix(profile): fix dark mode on profile page
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
90f5ed5606
commit
6529d4f20a
8 changed files with 6 additions and 9 deletions
|
@ -26,7 +26,6 @@ export const CurrentPasswordField: React.FC<CommonFieldProps> = ({ onChange }) =
|
|||
size='sm'
|
||||
onChange={onChange}
|
||||
placeholder={t('login.auth.password') ?? undefined}
|
||||
className='bg-dark text-light'
|
||||
autoComplete='current-password'
|
||||
required
|
||||
/>
|
||||
|
|
|
@ -36,7 +36,6 @@ export const AccessTokenCreationFormExpiryField: React.FC<AccessTokenCreationFor
|
|||
type='date'
|
||||
size='sm'
|
||||
value={formValues.expiryDate}
|
||||
className='bg-dark text-light'
|
||||
onChange={onChangeExpiry}
|
||||
min={minMaxDefaultDates.min}
|
||||
max={minMaxDefaultDates.max}
|
||||
|
|
|
@ -39,7 +39,6 @@ export const AccessTokenCreationFormLabelField: React.FC<AccessTokenCreationForm
|
|||
size='sm'
|
||||
placeholder={t('profile.accessTokens.label') ?? undefined}
|
||||
value={formValues.label}
|
||||
className='bg-dark text-light'
|
||||
onChange={onChangeLabel}
|
||||
isValid={labelValid}
|
||||
required
|
||||
|
|
|
@ -54,12 +54,12 @@ export const AccessTokenListEntry: React.FC<AccessTokenListEntryProps & AccessTo
|
|||
}, [token.lastUsedAt])
|
||||
|
||||
return (
|
||||
<ListGroup.Item className='bg-dark'>
|
||||
<ListGroup.Item>
|
||||
<Row>
|
||||
<Col className='text-start' {...cypressId('access-token-label')}>
|
||||
{token.label}
|
||||
</Col>
|
||||
<Col className='text-start text-white-50'>{lastUsed}</Col>
|
||||
<Col className='text-start'>{lastUsed}</Col>
|
||||
<Col xs='auto'>
|
||||
<IconButton
|
||||
icon={IconTrash}
|
||||
|
|
|
@ -46,7 +46,7 @@ export const ProfileAccessTokens: React.FC = () => {
|
|||
)
|
||||
|
||||
return (
|
||||
<Card className='bg-dark mb-4 access-tokens'>
|
||||
<Card className='mb-4 access-tokens'>
|
||||
<Card.Body>
|
||||
<Card.Title>
|
||||
<Trans i18nKey='profile.accessTokens.title' />
|
||||
|
|
|
@ -21,7 +21,7 @@ export const ProfileAccountManagement: React.FC = () => {
|
|||
|
||||
return (
|
||||
<Fragment>
|
||||
<Card className='bg-dark mb-4'>
|
||||
<Card className='mb-4'>
|
||||
<Card.Body>
|
||||
<Card.Title>
|
||||
<Trans i18nKey='profile.accountManagement' />
|
||||
|
|
|
@ -70,7 +70,7 @@ export const ProfileChangePassword: React.FC = () => {
|
|||
}, [loading, oldPassword, newPassword, newPasswordAgain])
|
||||
|
||||
return (
|
||||
<Card className='bg-dark mb-4'>
|
||||
<Card className='mb-4'>
|
||||
<Card.Body>
|
||||
<Card.Title>
|
||||
<Trans i18nKey='profile.changePassword.title' />
|
||||
|
|
|
@ -39,7 +39,7 @@ export const ProfileDisplayName: React.FC = () => {
|
|||
}, [displayName, userName])
|
||||
|
||||
return (
|
||||
<Card className='bg-dark mb-4'>
|
||||
<Card className='mb-4'>
|
||||
<Card.Body>
|
||||
<Card.Title>
|
||||
<Trans i18nKey='profile.userProfile' />
|
||||
|
|
Loading…
Reference in a new issue