parent
36021f9aba
commit
ac49a5aa87
19
.deepsource.toml
Normal file
19
.deepsource.toml
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
version = 1
|
||||
|
||||
exclude_patterns = [
|
||||
"static/**",
|
||||
"deploy/**",
|
||||
"contributions/**"
|
||||
]
|
||||
|
||||
[[analyzers]]
|
||||
name = "javascript"
|
||||
enabled = true
|
||||
|
||||
[analyzers.meta]
|
||||
plugins = ["react"]
|
||||
environment = [
|
||||
"nodejs",
|
||||
"browser"
|
||||
]
|
||||
dialect = "typescript"
|
||||
|
|
@ -381,7 +381,7 @@ const TextLoadingState = ({ text }: { text?: string }) => (
|
|||
);
|
||||
|
||||
const IconLoadingState = ({ size, icon }: { size?: Size; icon?: IconName }) => (
|
||||
<Icon name={icon} size={IconSizeProp(size)} invisible={true} />
|
||||
<Icon name={icon} size={IconSizeProp(size)} invisible />
|
||||
);
|
||||
|
||||
const getIconContent = (props: ButtonProps) =>
|
||||
|
|
|
|||
|
|
@ -263,7 +263,7 @@ export const EditableText = (props: EditableTextProps) => {
|
|||
onChange={onInputchange}
|
||||
onConfirm={onConfirm}
|
||||
value={value}
|
||||
selectAllOnFocus={true}
|
||||
selectAllOnFocus
|
||||
placeholder={props.placeholder || defaultValue}
|
||||
className={props.className}
|
||||
onCancel={onConfirm}
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ const PopoverVideo = (props: VideoComponentProps) => {
|
|||
minimal
|
||||
usePortal
|
||||
enforceFocus={false}
|
||||
lazy={true}
|
||||
lazy
|
||||
modifiers={{
|
||||
flip: {
|
||||
behavior: ["right", "left", "bottom", "top"],
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ const PageNumberInput = (props: {
|
|||
min={1}
|
||||
max={props.pageCount || 1}
|
||||
buttonPosition="none"
|
||||
clampValueOnBlur={true}
|
||||
clampValueOnBlur
|
||||
onBlur={(e: any) => {
|
||||
const oldPageNo = Number(props.pageNo || 0);
|
||||
const value = e.target.value;
|
||||
|
|
|
|||
|
|
@ -114,7 +114,7 @@ class HelpModal extends React.Component<Props> {
|
|||
<>
|
||||
{isHelpModalOpen && (
|
||||
<ModalComponent
|
||||
canOutsideClickClose={true}
|
||||
canOutsideClickClose
|
||||
canEscapeKeyClose
|
||||
scrollContents
|
||||
height={MODAL_HEIGHT}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user