style: react component prop readonly

This commit is contained in:
ReaJason
2025-03-30 15:33:31 +08:00
parent 5d97780e34
commit b8e91a3697
12 changed files with 22 additions and 16 deletions
+2 -2
View File
@@ -16,12 +16,12 @@ export function ShellResult({
allPackResults,
packMethod,
generateResult,
}: {
}: Readonly<{
packResult: string | undefined;
allPackResults: Map<string, string> | undefined;
packMethod: string;
generateResult?: GenerateResult;
}) {
}>) {
const { t } = useTranslation();
if (!generateResult) {
return <QuickUsage />;