Skip to content

Commit

Permalink
fix/forgot-share-button (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
GaspardBBY authored Apr 9, 2024
1 parent 960e1cc commit d646b0b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
9 changes: 9 additions & 0 deletions expo/components/ActiveRoomView.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { RoomJSON } from "commons/backend-types";
import { Link, router } from "expo-router";
import Share from "phosphor-react-native/src/bold/Share";
import DoorOpen from "phosphor-react-native/src/icons/DoorOpen";
import Gear from "phosphor-react-native/src/icons/Gear";
import Plus from "phosphor-react-native/src/icons/Plus";
Expand Down Expand Up @@ -235,6 +236,14 @@ const ActiveRoomView: React.FC<ActiveRoomViewProps> = ({ room }) => {
)}
/>
)}
<Button
href={`/rooms/${room.id}/invite`}
block
type="outline"
prependIcon={<Share />}
>
Inviter des amis
</Button>
</View>
</ScrollView>
<Button
Expand Down
12 changes: 11 additions & 1 deletion expo/components/player/Player.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import React, { useState } from "react";
import { StyleSheet, Text, View } from "react-native";

import { useWebSocket } from "../../app/(tabs)/rooms/[id]/_layout";
import Font from "../../constants/Font";
import { useUserProfile } from "../../lib/userProfile";
import Button from "../Button";

Expand Down Expand Up @@ -115,7 +116,16 @@ const Player: React.FC<PlayerProps> = ({ state, isHost, children }) => {
</View>
</>
)}
{!state && <Text>Nothing is playing, start a song</Text>}
{!state && (
<Text
style={{
fontFamily: Font.Outfit.ExtraLight,
fontSize: 16,
}}
>
Aucune musique n'est en cours de lecture, commencez une musique
</Text>
)}
</View>
);
};
Expand Down

0 comments on commit d646b0b

Please sign in to comment.