Fix type errors

This commit is contained in:
Eric Bailey
2024-03-07 11:40:53 -06:00
parent 38b217458a
commit a2db4d6098
6 changed files with 15 additions and 10 deletions
+1 -1
View File
@@ -166,7 +166,7 @@ function ProfileCardPillModerationCause({
severity: 'alert' | 'inform'
}) {
const pal = usePalette('default')
const {name} = useModerationCauseDescription(cause, 'account')
const {name} = useModerationCauseDescription(cause)
return (
<View
style={[s.mt5, pal.btn, styles.pill]}
+3 -3
View File
@@ -38,7 +38,7 @@ import {
ChevronTop_Stroke2_Corner0_Rounded as ChevronTop,
} from '#/components/icons/Chevron'
import {ScreenHider} from '../../components/moderation/ScreenHider'
import {ProfileHeader} from '#/screens/Profile/Header'
import {ProfileHeaderStandard} from '#/screens/Profile/Header/ProfileHeaderStandard'
import {ProfileCard} from '../com/profile/ProfileCard'
import {FeedItem} from '../com/posts/FeedItem'
import {FeedItem as NotifFeedItem} from '../com/notifications/FeedItem'
@@ -243,7 +243,7 @@ export const DebugModScreen = ({}: NativeStackScreenProps<
],
},
labelDefs: {
'did:plc:fake-labeler': [interpretLabelValueDefinition(customLabelDef)],
'did:plc:fake-labeler': [interpretLabelValueDefinition(customLabelDef, 'did:plc:fake-labeler')],
},
}
}, [label, visibility, noAdult, isLoggedOut, isTargetMe, did, customLabelDef])
@@ -880,7 +880,7 @@ function MockAccountScreen({
style={{}}
screenDescription="profile"
modui={moderation.ui('profileView')}>
<ProfileHeader
<ProfileHeaderStandard
// @ts-ignore ProfileViewBasic is close enough -prf
profile={profile}
moderationOpts={moderationOpts}
-1
View File
@@ -62,7 +62,6 @@ export function Forms() {
value={value}
onChangeText={setValue}
label="Text field"
disabled
/>
</View>