Client:PortalSettings:OAuth: fix input max length
This commit is contained in:
parent
c7178bde0e
commit
66ece453ad
@ -156,6 +156,7 @@ const GenerateDeveloperTokenDialog = ({
|
||||
iconName={CopyReactSvgUrl}
|
||||
onIconClick={onCopyClick}
|
||||
type={InputType.text}
|
||||
maxLength={10000}
|
||||
/>
|
||||
<Text className="dates">
|
||||
Created: {dates.created}
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user