Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions app/_locales/en/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions app/_locales/en_GB/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ui/components/app/srp-input-import/srp-input-import.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@

&__actions {
height: 3rem;
grid-template-columns: 1fr 1fr;
grid-template-columns: 1fr;
border-top: 1px solid var(--color-primary-inverse);
}
}
Expand Down
16 changes: 3 additions & 13 deletions ui/components/app/srp-input-import/srp-input-import.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ export default function SrpInputImport({ onChange }: SrpInputImportProps) {
const t = useI18nContext();
const [draftSrp, setDraftSrp] = useState<DraftSrp[]>([]);
const [firstWord, setFirstWord] = useState('');
const [showAll, setShowAll] = useState(false);
const [misSpelledWords, setMisSpelledWords] = useState<string[]>([]);

const srpRefs = useRef<ListOfTextFieldRefs>({});
Expand Down Expand Up @@ -282,9 +281,7 @@ export default function SrpInputImport({ onChange }: SrpInputImportProps) {
error={misSpelledWords.includes(word.word)}
value={word.word}
type={
word.active ||
showAll ||
misSpelledWords.includes(word.word)
word.active || misSpelledWords.includes(word.word)
? TextFieldType.Text
: TextFieldType.Password
}
Expand Down Expand Up @@ -350,19 +347,11 @@ export default function SrpInputImport({ onChange }: SrpInputImportProps) {
gap={0}
className="srp-input-import__actions"
>
<Button
variant={ButtonVariant.Link}
onClick={() => setShowAll(!showAll)}
>
{showAll
? t('onboardingSrpInputHideAll')
: t('onboardingSrpInputShowAll')}
</Button>
{draftSrp.length > 0 ? (
<Button
variant={ButtonVariant.Link}
block
onClick={async () => {
setShowAll(false);
setDraftSrp([]);
}}
>
Expand All @@ -372,6 +361,7 @@ export default function SrpInputImport({ onChange }: SrpInputImportProps) {
<Button
data-testid="srp-input-import__paste-button"
variant={ButtonVariant.Link}
block
onClick={onTriggerPaste}
>
{t('paste')}
Expand Down
Loading