Refactor API and frontend components: update item state handling, adjust API key length, and improve table layout for MyLoansPage
This commit is contained in:
@@ -37,17 +37,17 @@ const AddAPIKey: React.FC<AddAPIKeyProps> = ({ onClose, alert }) => {
|
||||
<InputGroup
|
||||
endElement={
|
||||
<Span color="fg.muted" textStyle="xs">
|
||||
{value.length} / {15}
|
||||
{value.length} / {8}
|
||||
</Span>
|
||||
}
|
||||
>
|
||||
<Input
|
||||
placeholder="Er muss 15 Zeichen lang sein"
|
||||
placeholder="Er muss 8 zahlen lang sein"
|
||||
value={value}
|
||||
id="apiKey"
|
||||
maxLength={15}
|
||||
maxLength={8}
|
||||
onChange={(e) => {
|
||||
setValue(e.currentTarget.value.slice(0, 15));
|
||||
setValue(e.currentTarget.value.slice(0, 8));
|
||||
}}
|
||||
/>
|
||||
</InputGroup>
|
||||
|
||||
Reference in New Issue
Block a user