-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathMaxButton.tsx
More file actions
31 lines (27 loc) · 862 Bytes
/
MaxButton.tsx
File metadata and controls
31 lines (27 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import React from "react";
import { Pressable, StyleSheet } from "react-native";
import { neutral22, primaryColor } from "../../utils/style/colors";
import { fontRegular12 } from "../../utils/style/fonts";
import { layout } from "../../utils/style/layout";
import { BrandText } from "../BrandText";
type MaxButtonProps = {
onPress: () => void;
};
export const MaxButton = ({ onPress }: MaxButtonProps) => {
return (
<Pressable onPress={onPress}>
<BrandText style={styles.maxText}>max</BrandText>
</Pressable>
);
};
// FIXME: remove StyleSheet.create
// eslint-disable-next-line no-restricted-syntax
const styles = StyleSheet.create({
maxText: {
...StyleSheet.flatten(fontRegular12),
backgroundColor: primaryColor,
color: neutral22,
borderRadius: layout.borderRadius,
paddingHorizontal: layout.spacing_x0_5,
},
});