1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 01:47:00 +01:00

Replaced with new checkbox in ConnectedAccountsPermissions (#20228)

* Replaced with new checkbox in ConnectedAccountsPermissions

* removed a typo

* fixed linting issue

* Small updates to styles

---------

Co-authored-by: George Marshall <george.marshall@consensys.net>
This commit is contained in:
Ashis Kumar Pradhan 2023-08-02 02:47:19 +05:30 committed by GitHub
parent 4e083017d6
commit 512fdcae56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 11 deletions

View File

@ -2,7 +2,7 @@ import classnames from 'classnames';
import PropTypes from 'prop-types';
import React, { useState } from 'react';
import { flatten } from 'lodash';
import CheckBox from '../../ui/check-box';
import { Checkbox } from '../../component-library';
import { useI18nContext } from '../../../hooks/useI18nContext';
import { getPermissionDescription } from '../../../helpers/utils/permission';
@ -59,13 +59,12 @@ const ConnectedAccountsPermissions = ({ permissions }) => {
key={`connected-permission-${idx}`}
className="connected-accounts-permissions__list-item"
>
<CheckBox
checked
disabled
<Checkbox
isChecked
isDisabled
id={`connected-permission-${idx}`}
className="connected-accounts-permissions__checkbox"
label={label}
/>
<label htmlFor={`connected-permission-${idx}`}>{label}</label>
</li>
))}
</ul>

View File

@ -40,11 +40,6 @@
display: flex;
}
& &__checkbox {
font-size: $font-size-h4;
margin: 0 8px 0 0;
}
&__list-container {
max-height: 0;
overflow: hidden;

View File

@ -42,6 +42,7 @@
&--disabled {
opacity: var(--opacity-disabled);
cursor: not-allowed;
}
&__icon {