Skip to content

Commit df393c1

Browse files
committed
add Button Row to header
1 parent 523b715 commit df393c1

1 file changed

Lines changed: 17 additions & 12 deletions

File tree

apps/client/src/pages/LogScreen.tsx

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React from "react"
22

33
import {
44
Button,
5+
ButtonRow,
56
Column,
67
Icon,
78
type ScrollViewRef,
@@ -17,18 +18,22 @@ export const LogScreen = () => {
1718
<Column grow>
1819
<Header>
1920
<Text>Logs</Text>
20-
<Button
21-
icon={Icon.ChevronDown}
22-
onPress={() => {
23-
scrollViewRef.current?.scrollToEnd({ animated: true })
24-
}}
25-
/>
26-
<Button
27-
icon={Icon.ChevronUp}
28-
onPress={() => {
29-
scrollViewRef.current?.scrollTo({ y: 0, animated: true })
30-
}}
31-
/>
21+
<ButtonRow>
22+
<Button
23+
icon={Icon.ChevronDown}
24+
isRaised
25+
onPress={() => {
26+
scrollViewRef.current?.scrollToEnd({ animated: true })
27+
}}
28+
/>
29+
<Button
30+
icon={Icon.ChevronUp}
31+
isRaised
32+
onPress={() => {
33+
scrollViewRef.current?.scrollTo({ y: 0, animated: true })
34+
}}
35+
/>
36+
</ButtonRow>
3237
</Header>
3338
<Logs ref={scrollViewRef} />
3439
</Column>

0 commit comments

Comments
 (0)