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 }) => (
|
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) =>
|
const getIconContent = (props: ButtonProps) =>
|
||||||
|
|
|
||||||
|
|
@ -263,7 +263,7 @@ export const EditableText = (props: EditableTextProps) => {
|
||||||
onChange={onInputchange}
|
onChange={onInputchange}
|
||||||
onConfirm={onConfirm}
|
onConfirm={onConfirm}
|
||||||
value={value}
|
value={value}
|
||||||
selectAllOnFocus={true}
|
selectAllOnFocus
|
||||||
placeholder={props.placeholder || defaultValue}
|
placeholder={props.placeholder || defaultValue}
|
||||||
className={props.className}
|
className={props.className}
|
||||||
onCancel={onConfirm}
|
onCancel={onConfirm}
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@ const PopoverVideo = (props: VideoComponentProps) => {
|
||||||
minimal
|
minimal
|
||||||
usePortal
|
usePortal
|
||||||
enforceFocus={false}
|
enforceFocus={false}
|
||||||
lazy={true}
|
lazy
|
||||||
modifiers={{
|
modifiers={{
|
||||||
flip: {
|
flip: {
|
||||||
behavior: ["right", "left", "bottom", "top"],
|
behavior: ["right", "left", "bottom", "top"],
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ const PageNumberInput = (props: {
|
||||||
min={1}
|
min={1}
|
||||||
max={props.pageCount || 1}
|
max={props.pageCount || 1}
|
||||||
buttonPosition="none"
|
buttonPosition="none"
|
||||||
clampValueOnBlur={true}
|
clampValueOnBlur
|
||||||
onBlur={(e: any) => {
|
onBlur={(e: any) => {
|
||||||
const oldPageNo = Number(props.pageNo || 0);
|
const oldPageNo = Number(props.pageNo || 0);
|
||||||
const value = e.target.value;
|
const value = e.target.value;
|
||||||
|
|
|
||||||
|
|
@ -114,7 +114,7 @@ class HelpModal extends React.Component<Props> {
|
||||||
<>
|
<>
|
||||||
{isHelpModalOpen && (
|
{isHelpModalOpen && (
|
||||||
<ModalComponent
|
<ModalComponent
|
||||||
canOutsideClickClose={true}
|
canOutsideClickClose
|
||||||
canEscapeKeyClose
|
canEscapeKeyClose
|
||||||
scrollContents
|
scrollContents
|
||||||
height={MODAL_HEIGHT}
|
height={MODAL_HEIGHT}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user