Skip to content

Commit

Permalink
feat(login/pronote): Used subtext instead of custom component
Browse files Browse the repository at this point in the history
  • Loading branch information
ecnivtwelve committed Dec 29, 2024
1 parent fd510f7 commit a74b1d7
Showing 1 changed file with 3 additions and 28 deletions.
31 changes: 3 additions & 28 deletions src/views/login/pronote/PronoteInstanceSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -298,34 +298,9 @@ const PronoteInstanceSelector: Screen<"PronoteInstanceSelector"> = ({
showAlert
);
}}
>
<View>
<Text
style={{
fontSize: 18,
fontFamily: "medium",
width: "100%",
color: colors.text + "88"
}}
numberOfLines={1}
ellipsizeMode="tail"
>
{instance.name}
</Text>
<Text
style={{
fontSize: 15,
fontFamily: "medium",
width: "100%",
color: colors.text + "55",
}}
numberOfLines={1}
ellipsizeMode="tail"
>
{${instance.distance.toFixed(2)}km de toi`}
</Text>
</View>
</DuoListPressable>
text={instance.name}
subtext={${instance.distance.toFixed(2)}km de toi`}
/>
</Reanimated.View>
))}
</Reanimated.View>
Expand Down

0 comments on commit a74b1d7

Please sign in to comment.