Client:PortalSettings:OAuth: fix input max length

This commit is contained in:
Timofey Boyko 2024-08-16 14:24:26 +03:00
parent c7178bde0e
commit 66ece453ad
2 changed files with 10 additions and 4 deletions

View File

@ -156,6 +156,7 @@ const GenerateDeveloperTokenDialog = ({
iconName={CopyReactSvgUrl}
onIconClick={onCopyClick}
type={InputType.text}
maxLength={10000}
/>
<Text className="dates">
Created: {dates.created}

View File

@ -12,11 +12,15 @@ import { Button, ButtonSize } from "@docspace/shared/components/button";
import { Text } from "@docspace/shared/components/text";
import { toastr } from "@docspace/shared/components/toast";
import { TData } from "@docspace/shared/components/toast/Toast.type";
import { InputBlock } from "@docspace/shared/components/input-block";
import { InputSize, InputType } from "@docspace/shared/components/text-input";
import {
InputSize,
InputType,
TextInput,
} from "@docspace/shared/components/text-input";
import { UserStore } from "@docspace/shared/store/UserStore";
import { OAuthStoreProps } from "SRC_DIR/store/OAuthStore";
import { UserStore } from "@docspace/shared/store/UserStore";
const StyledContainer = styled.div`
p {
@ -86,13 +90,14 @@ const GenerateDeveloperTokenDialog = ({
<ModalDialog.Body>
<StyledContainer>
<Text>Warning text</Text>
<InputBlock
<TextInput
value={token}
scale
placeholder="Enter developer token"
type={InputType.text}
size={InputSize.base}
onChange={onChange}
maxLength={10000}
/>
</StyledContainer>
</ModalDialog.Body>