-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: create component to rooms header
- Loading branch information
1 parent
2027695
commit af500bb
Showing
3 changed files
with
37 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { StyleSheet, View } from "react-native"; | ||
|
||
import Button from "../Button"; | ||
import H1 from "../text/H1"; | ||
|
||
export default function RoomsHeader() { | ||
return ( | ||
<View style={styles.headerContainer}> | ||
<H1>Salles d'écoute</H1> | ||
<View style={styles.buttonContainer}> | ||
<Button block href="/rooms/create"> | ||
Créer une salle | ||
</Button> | ||
<Button block type="outline" href="/rooms/join"> | ||
Rejoindre une salle | ||
</Button> | ||
</View> | ||
</View> | ||
); | ||
} | ||
|
||
const styles = StyleSheet.create({ | ||
headerContainer: { | ||
flex: 1, | ||
paddingHorizontal: 24, | ||
paddingVertical: 21, | ||
gap: 36, | ||
backgroundColor: "#E6E6E6", | ||
}, | ||
buttonContainer: { | ||
gap: 8, | ||
}, | ||
}); |