Skip to content

Commit

Permalink
Lint code with ESLint and Prettier
Browse files Browse the repository at this point in the history
Triggered by 1db4ce4 on branch refs/heads/batch-image-upload
  • Loading branch information
realVinayak authored and github-actions[bot] committed Dec 22, 2023
1 parent 1db4ce4 commit 6e56723
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,14 @@ declare namespace Intl {
public constructor(
locales?: RA<string> | string,
options?: {
unit: 'byte'; // TODO: Expand unit
notation: 'standard' | 'compact' | 'scientific' | 'engineering';
unitDisplay: 'short' | 'narrow' | 'long';
style: 'unit' | 'decimal' | 'currency' | 'percent';
readonly unit: 'byte'; // TODO: Expand unit
readonly notation:
| 'compact'
| 'engineering'
| 'scientific'
| 'standard';
readonly unitDisplay: 'long' | 'narrow' | 'short';
readonly style: 'currency' | 'decimal' | 'percent' | 'unit';
}
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function AttachmentImportByIdSafe({
readonly id: number;
}): JSX.Element | null {
const [attachmentDataSet] = usePromise<AttachmentDataSet | undefined>(
React.useMemo(() => fetchAndReconstructDataset(id), [id]),
React.useMemo(async () => fetchAndReconstructDataset(id), [id]),
true
);
return attachmentDataSet === undefined ? null : (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { headerText } from '../../localization/header';
import { f } from '../../utils/functools';
import type { IR, RA } from '../../utils/types';
import { dialogIcons } from '../Atoms/Icons';
import { formatFileSize } from '../Atoms/Internationalization';
import { Link } from '../Atoms/Link';
import { getResourceViewUrl } from '../DataModel/resource';
import type { Tables } from '../DataModel/types';
Expand All @@ -20,7 +21,6 @@ import {
resolveAttachmentRecord,
resolveAttachmentStatus,
} from './utils';
import { formatFileSize } from '../Atoms/Internationalization';

const resolveAttachmentDatasetData = (
uploadableFiles: RA<PartialUploadableFileSpec>,
Expand Down Expand Up @@ -86,7 +86,7 @@ const resolveAttachmentDatasetData = (
],
progress: [
statusText,
<div title={statusText} className="flex w-fit gap-1">
<div className="flex w-fit gap-1" title={statusText}>
{status?.type === 'success' &&
status.successType === 'uploaded' &&
dialogIcons.success}
Expand Down Expand Up @@ -224,7 +224,7 @@ export function ViewAttachmentFiles({

function StartUploadDescription(): JSX.Element {
return (
<div className={`flex h-full flex-col items-center justify-center gap-3`}>
<div className="flex h-full flex-col items-center justify-center gap-3">
<ol className="flex list-decimal flex-col gap-3">
<li>{attachmentsText.chooseFilesToGetStarted()}</li>
<li>{attachmentsText.selectIdentifier()}</li>
Expand Down

0 comments on commit 6e56723

Please sign in to comment.