Skip to content

Commit

Permalink
spice
Browse files Browse the repository at this point in the history
  • Loading branch information
ingawei committed Jul 31, 2024
1 parent d86036d commit 6c39649
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions web/components/add-funds-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ export const OtherWaysToGetMana = () => {
</Item>
<Item url="/referrals">
👋 Refer a friend for{' '}
<CoinNumber amount={REFERRAL_AMOUNT} isSpice isInline /> after their
first trade
<CoinNumber amount={REFERRAL_AMOUNT} coinType={'spice'} isInline />{' '}
after their first trade
</Item>
</ul>
)
Expand Down
2 changes: 1 addition & 1 deletion web/components/buttons/referrals-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export function Referrals(props: { user: User }) {
Refer a friend for{' '}
<span className={'text-teal-500'}>
<CoinNumber
isSpice
coinType="spice"
amount={REFERRAL_AMOUNT}
style={{
color: SPICE_COLOR,
Expand Down
2 changes: 1 addition & 1 deletion web/components/gidx/register-user-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export const RegisterUserForm = (props: { user: User }) => {
<br />
You have{' '}
<CoinNumber
isSpice
coinType="spice"
amount={user.spiceBalance}
style={{
color: SPICE_COLOR,
Expand Down
2 changes: 1 addition & 1 deletion web/components/nav/bottom-nav-bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ function NavBarItem(props: {
amount={user?.spiceBalance}
numberType="short"
className="text-amber-600 dark:text-amber-400"
isSpice
coinType="spice"
/>
</Row>
</Row>
Expand Down
2 changes: 1 addition & 1 deletion web/components/nav/profile-summary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export function ProfileSummary(props: { user: User; className?: string }) {
<CoinNumber
className="text-sm text-amber-600 dark:text-amber-400"
amount={user.spiceBalance}
isSpice
coinType="spice"
/>
)}
</div>
Expand Down
2 changes: 1 addition & 1 deletion web/components/notifications/notification-types.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1440,7 +1440,7 @@ function ReferralProgramNotification(props: {
<span>
Refer friends and get{' '}
<CoinNumber
isSpice
coinType="spice"
amount={REFERRAL_AMOUNT}
style={{
color: SPICE_COLOR,
Expand Down
2 changes: 1 addition & 1 deletion web/components/portfolio/portfolio-graph-number.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function PortfolioGraphNumber(props: {
<CoinNumber
amount={displayedAmount}
className={clsx('font-bold transition-all', className)}
isSpice={isSpice}
coinType={isSpice ? 'spice' : 'mana'}
/>

<div
Expand Down
2 changes: 1 addition & 1 deletion web/components/profile/redeem-spice-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function RedeemSpiceButton(props: {
Redeem{' '}
<CoinNumber
amount={spice ?? undefined}
isSpice
coinType="spice"
coinClassName={disabled ? 'grayscale opacity-50' : ''}
/>
</Row>
Expand Down
2 changes: 1 addition & 1 deletion web/components/redeem-spice-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function RedeemSpiceModal(props: {
className={clsx('text-ink-1000 text-4xl font-bold transition-all')}
isInline
coinClassName="top-[0.1rem]"
isSpice
coinType='spice'
/>
<span
className={clsx(
Expand Down
4 changes: 2 additions & 2 deletions web/pages/charity/[charitySlug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ function DonationBox(props: {
)}

<div className="mt-2 text-xs">
<CoinNumber amount={MIN_SPICE_DONATION} isInline isSpice /> donation
minimum
<CoinNumber amount={MIN_SPICE_DONATION} isInline coinType={'spice'} />{' '}
donation minimum
</div>
</div>
)
Expand Down
2 changes: 1 addition & 1 deletion web/pages/referrals.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default function ReferralsPage() {
<div className={'mb-4'}>
Invite new users to Manifold and get{' '}
<CoinNumber
isSpice
coinType="spice"
amount={REFERRAL_AMOUNT}
style={{
color: SPICE_COLOR,
Expand Down

0 comments on commit 6c39649

Please sign in to comment.