Skip to content

Commit

Permalink
Fix style prop errors and attempt version bump + using non-dev api fo…
Browse files Browse the repository at this point in the history
…r unified checkout JS library
  • Loading branch information
julianweng committed Oct 9, 2024
1 parent 59763e4 commit 221ee1b
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion frontend/components/Settings/ClubTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ const ClubTab = ({
<>
<EmptyState name="button" />
<Center>
<Text isGray>
<Text $isGray>
No memberships yet! Browse {OBJECT_NAME_PLURAL}{' '}
<Link href="/">here</Link>.
</Text>
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/Settings/RenewTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const RenewTab = ({ className }: ClubTabProps): ReactElement => {
<>
<EmptyState name="button" />
<Center>
<Text isGray>
<Text $isGray>
You are not listed as an officer for any {OBJECT_NAME_PLURAL} yet.
If you would like to request access for an existing{' '}
{OBJECT_NAME_SINGULAR}, please send your name, PennKey, and{' '}
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/Settings/TicketsTab/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ const TicketsTab = ({ className, userInfo }: TicketsTabProps): ReactElement => {
<>
<EmptyState name="empty_cart" />
<Center>
<Text isGray>
<Text $isGray>
No tickets yet! Browse events to find tickets{' '}
<Link href="/events">here</Link>.
</Text>
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/Tickets/CartTickets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ const CartTickets: React.FC<CartTicketsProps> = ({ tickets, soldOut }) => {
}}
>
<Subtitle>Your cart is empty</Subtitle>
<Text isGray>
<Text $isGray>
To add tickets to your cart, visit the event page and select the
tickets you wish to purchase. If you believe this is an error,
please contact support at
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/Tickets/PaymentForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const Payment: React.FC<PaymentProps> = ({
return (
<>
<Script
src="https://apitest.cybersource.com/up/v1/assets/0.15/SecureAcceptance.js"
src="https://api.cybersource.com/up/v1/assets/0.22.0/SecureAcceptance.js"
async
onLoad={onLoad}
/>
Expand Down
4 changes: 2 additions & 2 deletions frontend/components/common/Typography.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import {
WHITE,
} from '../../constants/colors'

export const Text = styled.p<{ isGray?: boolean; color?: string }>`
export const Text = styled.p<{ $isGray?: boolean; color?: string }>`
font-size: 1rem;
margin-bottom: 1rem;
line-height: 1.5;
${({ isGray }) => (isGray ? `color: ${CLUBS_GREY};` : '')}
${({ $isGray }) => ($isGray ? `color: ${CLUBS_GREY};` : '')}
${({ color }) => (color ? `color: ${color};` : '')}
`

Expand Down

0 comments on commit 221ee1b

Please sign in to comment.