Skip to content

Commit 12c9414

Browse files
dylanjeffersclaude
andcommitted
style(mobile): inline errorContent prop in challenge rewards drawers
Prettier was breaking mobile CI on main due to a multi-line errorContent={ ... } pattern across 11 challenge content components. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent a6b738b commit 12c9414

11 files changed

Lines changed: 11 additions & 33 deletions

packages/mobile/src/components/challenge-rewards-drawer/AudioMatchingChallengeContent.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,7 @@ export const AudioMatchingChallengeContent = ({
148148
statusLabel={statusLabel}
149149
additionalContent={additionalContent}
150150
actions={actions}
151-
errorContent={
152-
claimError ? <ClaimError /> : null
153-
}
151+
errorContent={claimError ? <ClaimError /> : null}
154152
isCooldownChallenge
155153
/>
156154
)

packages/mobile/src/components/challenge-rewards-drawer/CosignChallengeContent.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,7 @@ export const CosignChallengeContent = ({
128128
<CooldownSummaryTable challengeId={challenge.challenge_id} />
129129
) : null
130130
}
131-
errorContent={
132-
claimError ? <ClaimError /> : null
133-
}
131+
errorContent={claimError ? <ClaimError /> : null}
134132
isCooldownChallenge={false}
135133
/>
136134
)

packages/mobile/src/components/challenge-rewards-drawer/DefaultChallengeContent.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,7 @@ export const DefaultChallengeContent = ({
108108
progressMax={challenge?.max_steps}
109109
statusLabel={statusLabel}
110110
actions={children ?? actions}
111-
errorContent={
112-
claimError ? <ClaimError /> : null
113-
}
111+
errorContent={claimError ? <ClaimError /> : null}
114112
isCooldownChallenge={!!challenge?.cooldown_days}
115113
/>
116114
)

packages/mobile/src/components/challenge-rewards-drawer/FirstWeeklyCommentChallengeContent.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,7 @@ export const FirstWeeklyCommentChallengeContent = ({
132132
<CooldownSummaryTable challengeId={challenge.challenge_id} />
133133
) : null
134134
}
135-
errorContent={
136-
claimError ? <ClaimError /> : null
137-
}
135+
errorContent={claimError ? <ClaimError /> : null}
138136
isCooldownChallenge={false}
139137
/>
140138
)

packages/mobile/src/components/challenge-rewards-drawer/ListenStreakEndlessChallengeContent.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,7 @@ export const ListenStreakEndlessChallengeContent = ({
122122
rewardSubtext={messages.rewardMapping}
123123
statusLabel={statusLabel}
124124
actions={actions}
125-
errorContent={
126-
claimError ? <ClaimError /> : null
127-
}
125+
errorContent={claimError ? <ClaimError /> : null}
128126
isCooldownChallenge={false}
129127
/>
130128
)

packages/mobile/src/components/challenge-rewards-drawer/PinnedCommentChallengeContent.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,7 @@ export const PinnedCommentChallengeContent = ({
130130
<CooldownSummaryTable challengeId={challenge.challenge_id} />
131131
) : null
132132
}
133-
errorContent={
134-
claimError ? <ClaimError /> : null
135-
}
133+
errorContent={claimError ? <ClaimError /> : null}
136134
isCooldownChallenge={!!challenge?.cooldown_days}
137135
/>
138136
)

packages/mobile/src/components/challenge-rewards-drawer/PlayCountMilestoneContent.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,7 @@ export const PlayCountMilestoneContent = (props: ChallengeContentProps) => {
140140
statusLabel={statusLabel}
141141
actions={actions}
142142
additionalContent={additionalContent}
143-
errorContent={
144-
claimError ? <ClaimError /> : null
145-
}
143+
errorContent={claimError ? <ClaimError /> : null}
146144
isCooldownChallenge={!!optimisticChallenge?.cooldown_days}
147145
/>
148146
)

packages/mobile/src/components/challenge-rewards-drawer/ProfileCompletionChallengeContent.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,7 @@ export const ProfileCompletionChallengeContent = ({
214214
statusLabel={statusLabel}
215215
additionalContent={completionChecks}
216216
actions={actions}
217-
errorContent={
218-
claimError ? <ClaimError /> : null
219-
}
217+
errorContent={claimError ? <ClaimError /> : null}
220218
isCooldownChallenge={false}
221219
/>
222220
)

packages/mobile/src/components/challenge-rewards-drawer/ReferralChallengeContent.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,7 @@ export const ReferralChallengeContent = ({
117117
statusLabel={statusLabel}
118118
additionalContent={referralContent}
119119
actions={actions}
120-
errorContent={
121-
claimError ? <ClaimError /> : null
122-
}
120+
errorContent={claimError ? <ClaimError /> : null}
123121
isCooldownChallenge={false}
124122
/>
125123
)

packages/mobile/src/components/challenge-rewards-drawer/RemixContestWinnerChallengeContent.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,7 @@ export const RemixContestWinnerChallengeContent = ({
127127
<CooldownSummaryTable challengeId={challenge.challenge_id} />
128128
) : null
129129
}
130-
errorContent={
131-
claimError ? <ClaimError /> : null
132-
}
130+
errorContent={claimError ? <ClaimError /> : null}
133131
isCooldownChallenge
134132
/>
135133
)

0 commit comments

Comments
 (0)