mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Enforce some naming conventions (#4813)
This commit is contained in:
1 parent
dc6615f98f
commit
0b32775d40
197 files changed
+630
-634
No files matched your search
@@ -69,9 +69,9 @@ export interface BaseProps {
|
||||
onOverTotalSizeLimit?: OverTotalSizeLimitStyle;
|
||||
}
|
||||
|
||||
export type Props = BaseProps & (MemoryUseProps | FileUploadProps);
|
||||
export type FilePickerProps = BaseProps & (MemoryUseProps | FileUploadProps);
|
||||
|
||||
const defaultProps: Partial<Props> = {
|
||||
const defaultProps: Partial<FilePickerProps> = {
|
||||
maxSize: Infinity,
|
||||
onOverSizeLimit: OverSizeLimitStyle.REJECT,
|
||||
maxTotalSize: Infinity,
|
||||
@@ -80,13 +80,13 @@ const defaultProps: Partial<Props> = {
|
||||
};
|
||||
|
||||
@observer
|
||||
export class FilePicker extends React.Component<Props> {
|
||||
export class FilePicker extends React.Component<FilePickerProps> {
|
||||
static defaultProps = defaultProps as Object;
|
||||
|
||||
@observable status = FileInputStatus.CLEAR;
|
||||
@observable errorText?: string;
|
||||
|
||||
constructor(props: Props) {
|
||||
constructor(props: FilePickerProps) {
|
||||
super(props);
|
||||
makeObservable(this);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user