Skip to content

Commit a054985

Browse files
committed
delete comment
1 parent 92d74fe commit a054985

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

src/features/decoder/components/secret-key-input.component.tsx

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
import React, { ChangeEvent, useEffect, useState } from "react";
2-
import { TokenDecoderEncodingFormatPickerComponent } from "@/features/decoder/components/token-decoder-encoding-format-picker.component";
32
import { SignatureVerificationSecretInputComponent } from "@/features/decoder/components/signature-verification-secret-input.component";
43
import { SignatureVerificationPublicKeyInputComponent } from "@/features/decoder/components/signature-verification-public-key-input.component";
54
import { CardWithHeadlineComponent } from "@/features/common/components/card/card.component";
65
import { DEFAULT_JWT } from "@/features/decoder/services/token-decoder.service";
7-
import { TokenDecoderKeyFormatPickerComponent } from "@/features/decoder/components/token-decoder-key-format-picker.component";
86
import { useDecoderStore } from "@/features/decoder/services/decoder.store";
97
import { HomeDictionaryModel } from "@/features/localization/models/home-dictionary.model";
108
import { useDebuggerStore } from "@/features/debugger/services/debugger.store";
@@ -19,7 +17,7 @@ import { CardToolbarComponent } from "@/features/common/components/card-toolbar/
1917
import { CardToolbarCopyButtonComponent } from "@/features/common/components/card-toolbar-buttons/card-toolbar-copy-button/card-toolbar-copy-button.component";
2018
import { CardToolbarClearButtonComponent } from "@/features/common/components/card-toolbar-buttons/card-toolbar-clear-button/card-toolbar-clear-button.component";
2119
import { NOOP_ALG } from "@/features/common/values/constants";
22-
import { EncodingFormatToggleSwitchComponent } from "./encoding-format-toggle-swith/encoding-format-toggle-switch";
20+
2321

2422
type SecretKeyInputComponentProps = {
2523
languageCode: string;
@@ -129,6 +127,7 @@ export const SecretKeyInputComponent: React.FC<
129127
? dictionary.description.secret
130128
: dictionary.description.publicKey,
131129
}}
130+
hasHeaderIcon
132131
languageCode={languageCode}
133132
messages={{
134133
errors: verificationInputErrors$,
@@ -138,7 +137,7 @@ export const SecretKeyInputComponent: React.FC<
138137
: dictionary.editor.successMessage.publicKey,
139138
],
140139
}}
141-
options={{ noPadding: true }}
140+
options={{ noPadding: false }}
142141
title={
143142
isHmacAlg(alg$)
144143
? dictionary.editor.title.secret
@@ -162,12 +161,7 @@ export const SecretKeyInputComponent: React.FC<
162161
isDisabled={isHmacAlg(alg$) ? !secret : !publicKey}
163162
/>
164163
</CardToolbarComponent>
165-
),
166-
/* footer: isHmacAlg(alg$) ? (
167-
<EncodingFormatToggleSwitchComponent languageCode={languageCode} />
168-
) : (
169-
<TokenDecoderKeyFormatPickerComponent languageCode={languageCode} />
170-
), */
164+
)
171165
}}
172166
>
173167
{isHmacAlg(alg$) && (

0 commit comments

Comments
 (0)