Update eslint to 8.27.0
This commit is contained in:
parent
c8fb43a846
commit
98ef4c627a
499 changed files with 8995 additions and 8494 deletions
|
@ -140,7 +140,7 @@ export type PropsType = {
|
|||
renderCrashReportDialog: () => JSX.Element;
|
||||
} & LookupConversationWithoutUuidActionsType;
|
||||
|
||||
export const LeftPane: React.FC<PropsType> = ({
|
||||
export function LeftPane({
|
||||
challengeStatus,
|
||||
crashReportCount,
|
||||
clearConversationSearch,
|
||||
|
@ -187,7 +187,7 @@ export const LeftPane: React.FC<PropsType> = ({
|
|||
theme,
|
||||
toggleComposeEditingAvatar,
|
||||
updateSearchTerm,
|
||||
}) => {
|
||||
}: PropsType): JSX.Element {
|
||||
const [preferredWidth, setPreferredWidth] = useState(
|
||||
// This clamp is present just in case we get a bogus value from storage.
|
||||
clamp(preferredWidthFromStorage, MIN_WIDTH, MAX_WIDTH)
|
||||
|
@ -622,15 +622,13 @@ export const LeftPane: React.FC<PropsType> = ({
|
|||
{footerContents && (
|
||||
<div className="module-left-pane__footer">{footerContents}</div>
|
||||
)}
|
||||
<>
|
||||
{/* eslint-disable-next-line jsx-a11y/no-static-element-interactions */}
|
||||
<div
|
||||
className="module-left-pane__resize-grab-area"
|
||||
onMouseDown={() => {
|
||||
setIsResizing(true);
|
||||
}}
|
||||
/>
|
||||
</>
|
||||
{/* eslint-disable-next-line jsx-a11y/no-static-element-interactions */}
|
||||
<div
|
||||
className="module-left-pane__resize-grab-area"
|
||||
onMouseDown={() => {
|
||||
setIsResizing(true);
|
||||
}}
|
||||
/>
|
||||
{challengeStatus !== 'idle' &&
|
||||
renderCaptchaDialog({
|
||||
onSkip() {
|
||||
|
@ -640,7 +638,7 @@ export const LeftPane: React.FC<PropsType> = ({
|
|||
{crashReportCount > 0 && renderCrashReportDialog()}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
function keyboardKeyToNumericIndex(key: string): undefined | number {
|
||||
if (key.length !== 1) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue