Skip to content

Commit

Permalink
feat: display appropiate descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
jrau1801 committed Jun 20, 2024
1 parent 6575510 commit 8f46bec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/profile/AchievementBadge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { AchievementType } from '@api/responses';
import { LevelType } from '../../types/types';
import React, { useState } from 'react';
import { YStack, SizableText, XStack, Progress, Accordion } from 'tamagui';
import { achievementLookupTable } from '@utils/achievementLookup';
import { achievementLookupTable, getAchievementDescription } from '@utils/achievementLookup';
import { Pressable } from 'react-native';
import { Feather } from '@expo/vector-icons';

Expand Down Expand Up @@ -54,7 +54,7 @@ const AchievementBadge: React.FC<Props> = ({ name, condition, progress, type, le
<Feather name="corner-down-right" size={24} color="white" />
<YStack flex={1} padding="$2" backgroundColor="$primaryLight" borderRadius={15}>
<SizableText>

{getAchievementDescription(type, condition)}
</SizableText>
</YStack>
</XStack>
Expand Down

0 comments on commit 8f46bec

Please sign in to comment.