Skip to content

Commit

Permalink
feat: Add ModalTitle
Browse files Browse the repository at this point in the history
  • Loading branch information
JeangelLF committed Sep 20, 2024
1 parent aebbcf8 commit e2f0d3c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const AchievementCard: React.FC<AchievementCardProps> = ({
{isNewAchievement && (
<>
<AchievementBadge />
<div className="absolute inset-0 z-10">
<div className="absolute inset-0 z-10 overflow-hidden">
<NewAchievementShine />
</div>
</>
Expand Down
6 changes: 3 additions & 3 deletions src/components/achievements/modals/AchievementModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import NewAchievementShine from '../cosmetics/NewAchievementShine';
import { Achievement_State, Achievement_Type_Enum, Step } from '../../../gql/graphql';
import { useLocation, useNavigate } from 'react-router-dom';
import { Linking } from 'react-native';
import { Modal } from '@/components/Modal';
import { Modal, ModalTitle } from '@/components/Modal';
import { cn } from '@/lib/Tailwind';
import { Button } from '@/components/Button';
import { Typography } from '@/components/Typography';
Expand Down Expand Up @@ -106,9 +106,9 @@ const AchievementModal: React.FC<AchievementModalProps> = ({
{isNewAchievement && <AchievementBadge isInline />}
<Typography className={cn(textColor)}>{tagline}</Typography>
</div>
<Typography className={cn('font-bold text-xl lg:text-[36px] leading-5 lg:leading-8 text-center lg:text-left', textColor)}>
<ModalTitle className={cn('font-bold text-xl lg:text-[36px] leading-5 lg:leading-8 text-center lg:text-left', textColor)}>
{title}
</Typography>
</ModalTitle>
<Typography className={cn(textColor, 'hidden lg:block')}>{description}</Typography>
</div>
<div className="flex flex-col w-full items-center gap-8 lg:hidden">
Expand Down

0 comments on commit e2f0d3c

Please sign in to comment.