Refactor API and frontend components: update item state handling, adjust API key length, and improve table layout for MyLoansPage

This commit is contained in:
2025-11-23 19:58:04 +01:00
parent 0a4d981808
commit 07d194ee6a
6 changed files with 154 additions and 142 deletions

View File

@@ -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>