mirror of
https://github.com/Heretek-AI/GDevelop-Heretek.git
synced 2026-10-12 02:02:42 +00:00
style(newIDE/app): align two files with prettier 1.15.3 in newIDE/app
The newIDE/app (lint + format + types) CI job added in Phase 5 caught two pre-existing files that were formatted with a different prettier version (likely 2.x/3.x during the BYOK + subscription unlock work): - src/Profile/Subscription/SubscriptionChecker.js - src/Utils/GDevelopServices/Generation.js Both have one wrapped-multi-line destructuring parameter that prettier 1.15.3 (pinned in newIDE/app/package.json) inlines to a single line. Mechanical prettier --write fix; no behavioral change. Verified: npm run check-format -> exit 0 npm run lint -> exit 0 npm test (matching) -> 33 passed, 0 failed
This commit is contained in:
@@ -32,16 +32,7 @@ const SubscriptionChecker: React.ComponentType<{
|
||||
...Props,
|
||||
+ref?: React.RefSetter<SubscriptionCheckerInterface>,
|
||||
}> = React.forwardRef<Props, SubscriptionCheckerInterface>(
|
||||
(
|
||||
{
|
||||
mode,
|
||||
id,
|
||||
title,
|
||||
onChangeSubscription,
|
||||
placementId,
|
||||
},
|
||||
ref
|
||||
) => {
|
||||
({ mode, id, title, onChangeSubscription, placementId }, ref) => {
|
||||
const [dialogOpen, setDialogOpen] = React.useState<boolean>(false);
|
||||
|
||||
const closeDialog = () => {
|
||||
|
||||
@@ -4,10 +4,7 @@ import { GDevelopAiCdn, GDevelopGenerationApi } from './ApiConfigs';
|
||||
import { type MessageByLocale } from '../i18n/MessageByLocale';
|
||||
import { getIDEVersionWithHash } from '../../Version';
|
||||
import { extractNextPageUriFromLinkHeader } from './Play';
|
||||
import {
|
||||
ensureIsArray,
|
||||
ensureObjectHasProperty,
|
||||
} from '../DataValidator';
|
||||
import { ensureIsArray, ensureObjectHasProperty } from '../DataValidator';
|
||||
import {
|
||||
isCustomEndpointEnabled,
|
||||
customCreateAiRequest,
|
||||
|
||||
Reference in New Issue
Block a user