Fix type errors

This commit is contained in:
Samuel Elliott
2024-10-16 00:18:24 +01:00
parent 445093e58a
commit 02faac2782
5 changed files with 10 additions and 6 deletions

View File

@@ -56,6 +56,7 @@ function ButtonMac(props: {
const styles_mac = StyleSheet.create({
button: {
// @ts-expect-error react-native-web
cursor: 'default',
lineHeight: 19,
borderRadius: 3,
@@ -63,6 +64,7 @@ const styles_mac = StyleSheet.create({
},
buttonLight: {
backgroundColor: '#ffffff',
// @ts-expect-error react-native-web
boxShadow: '#0000008a 0px 0px 1px',
},
@@ -76,10 +78,12 @@ const styles_mac = StyleSheet.create({
},
innerActive: {
backgroundColor: 'transparent',
// @ts-expect-error react-native-web
backgroundImage: 'linear-gradient(0deg, #00000050, #00000040)',
},
innerPressed: {
backgroundColor: 'transparent',
// @ts-expect-error react-native-web
backgroundImage: 'linear-gradient(0deg, #00000040, #00000020)',
},

View File

@@ -27,7 +27,6 @@ export default function FriendCode(props: {
const styles = StyleSheet.create({
friendCodeValue: {
// @ts-expect-error
userSelect: 'all',
},
});

View File

@@ -34,6 +34,7 @@ export function NintendoSwitchUsers(props: {
const styles = StyleSheet.create({
userImage: {
borderRadius: 8,
verticalAlign: -3,
// @ts-expect-error react-native-web
verticalAlign: -3 as 'auto',
},
});