mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-16 03:40:37 +08:00
Convert props to const where possible
This commit is contained in:
@@ -21,15 +21,13 @@
|
||||
codeComments?: CodeComments;
|
||||
}
|
||||
|
||||
/* eslint-disable prefer-const */
|
||||
let {
|
||||
const {
|
||||
patchId,
|
||||
revision,
|
||||
rid,
|
||||
showCommits = true,
|
||||
codeComments,
|
||||
}: Props = $props();
|
||||
/* eslint-enable prefer-const */
|
||||
|
||||
let hideChanges = $state(false);
|
||||
let filesExpanded = $state(true);
|
||||
|
||||
@@ -24,9 +24,7 @@
|
||||
loadPatch: () => Promise<void>;
|
||||
}
|
||||
|
||||
/* eslint-disable prefer-const */
|
||||
let { rid, patchId, revision, config, status, loadPatch }: Props = $props();
|
||||
/* eslint-enable prefer-const */
|
||||
const { rid, patchId, revision, config, status, loadPatch }: Props = $props();
|
||||
|
||||
let hideReviews = $state(
|
||||
revision.reviews === undefined || revision.reviews.length === 0,
|
||||
|
||||
@@ -29,8 +29,7 @@
|
||||
loadPatch: () => Promise<void>;
|
||||
}
|
||||
|
||||
/* eslint-disable prefer-const */
|
||||
let {
|
||||
const {
|
||||
rid,
|
||||
repoDelegates,
|
||||
patchId,
|
||||
@@ -39,7 +38,6 @@
|
||||
status,
|
||||
loadPatch,
|
||||
}: Props = $props();
|
||||
/* eslint-enable prefer-const */
|
||||
|
||||
const commentThreads = $derived(
|
||||
((revision.discussion &&
|
||||
|
||||
Reference in New Issue
Block a user