Skip to content

Commit 5b76e1b

Browse files
committed
replaces showstatboxes with ascelestialcard
1 parent 4aa4cf9 commit 5b76e1b

5 files changed

Lines changed: 5 additions & 15 deletions

File tree

app/cards/page.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ export default async function CardsPage() {
1919
overrideCelestialCard={card}
2020
width={150}
2121
tiltFactor={0.5}
22-
showStatBoxes={true}
2322
/>
2423
</div>
2524
))}

app/profile/Profile.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,6 @@ export default function Profile() {
250250
asCelestialCard={true}
251251
tiltFactor={2.5}
252252
gleamFollowsTilt
253-
showStatBoxes
254253
width={350}
255254
/>
256255
)}
@@ -340,11 +339,10 @@ export default function Profile() {
340339
<span>Homepage Display View</span>
341340
<PlayerCard
342341
userId={currentUser.id}
343-
asCelestialCard={true}
342+
asCelestialCard={false}
344343
tiltFactor={2.5}
345344
gleamFollowsTilt
346345
width={150}
347-
showStatBoxes={false}
348346
/>
349347
</div>
350348
) : (

components/PickACard/CardPicker.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ export default function CardPicker({
123123
asCelestialCard={true}
124124
overrideCelestialCard={null}
125125
width={150}
126-
showStatBoxes={true}
127126
/>
128127
</div>
129128
{cards
@@ -142,7 +141,6 @@ export default function CardPicker({
142141
asCelestialCard={true}
143142
overrideCelestialCard={card}
144143
width={150}
145-
showStatBoxes={true}
146144
/>
147145
</div>
148146
))}
@@ -171,7 +169,6 @@ export default function CardPicker({
171169
asCelestialCard={true}
172170
overrideCelestialCard={null}
173171
width={120}
174-
showStatBoxes={true}
175172
/>
176173
</div>
177174

@@ -190,7 +187,6 @@ export default function CardPicker({
190187
asCelestialCard={true}
191188
overrideCelestialCard={selectedCard}
192189
width={120}
193-
showStatBoxes={true}
194190
/>
195191
</div>
196192
</div>

components/PlayerCard/PlayerCard.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ export default function PlayerCard({
6262
gleamFollowsTilt = false,
6363
tiny = false,
6464
width = 300,
65-
showStatBoxes = false,
6665
asCelestialCard = false,
6766
overrideCelestialCard = null,
6867
holoEffect = 'dice',
@@ -73,7 +72,6 @@ export default function PlayerCard({
7372
gleamFollowsTilt?: boolean
7473
tiny?: boolean
7574
width?: number
76-
showStatBoxes?: boolean
7775
asCelestialCard?: boolean
7876
overrideCelestialCard?: DbCelestialCard | null
7977
holoEffect?: HoloEffect | null
@@ -92,13 +90,13 @@ export default function PlayerCard({
9290
const NAME_DIV_WIDTH =
9391
CARD_WIDTH -
9492
TIP_TOP_FRAME * 2 -
95-
(showStatBoxes ? CIRCLE_DIAMETER + CIRCLE_FROM_EDGE : 0) -
93+
(asCelestialCard ? CIRCLE_DIAMETER + CIRCLE_FROM_EDGE : 0) -
9694
(isTiny ? 0 : CIRCLE_DIAMETER) // ~estimates size of player_id, this could be its own placeholder prob
9795

9896
const bioCharLimit = asCelestialCard
9997
? BIO_CHAR_LIMIT
10098
: NO_ABILITY_BIO_CHAR_LIMIT
101-
const oneLineNameLengthLimit = showStatBoxes ? 12 : 18
99+
const oneLineNameLengthLimit = asCelestialCard ? 12 : 18
102100
const {
103101
data: profileData,
104102
isLoading: profileLoading,
@@ -201,7 +199,7 @@ export default function PlayerCard({
201199
className="pointer-events-none z-3 object-cover"
202200
/>
203201
{/* Breath Square icon */}
204-
{showStatBoxes && (
202+
{asCelestialCard && (
205203
<>
206204
<div
207205
style={{
@@ -283,7 +281,7 @@ export default function PlayerCard({
283281
{/* Name */}
284282
<div
285283
style={{
286-
left: showStatBoxes ? 210 * scale : 40 * scale,
284+
left: asCelestialCard ? 210 * scale : 40 * scale,
287285
top: TIP_TOP_FRAME * scale,
288286
height: isTiny
289287
? TALL_BANNER_HEIGHT * scale

components/sections/team/TeamGrid.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ export default function TeamGrid({ memberIds }: TeamGridProps) {
6565
asCelestialCard={true}
6666
tiltFactor={1}
6767
gleamFollowsTilt
68-
showStatBoxes={true}
6968
width={150}
7069
/>
7170
</div>

0 commit comments

Comments
 (0)