diff --git a/packages/core/src/js/feedback/FeedbackForm.styles.ts b/packages/core/src/js/feedback/FeedbackForm.styles.ts index c3bb29305..d54fb9cd8 100644 --- a/packages/core/src/js/feedback/FeedbackForm.styles.ts +++ b/packages/core/src/js/feedback/FeedbackForm.styles.ts @@ -10,8 +10,7 @@ const defaultStyles: FeedbackFormStyles = { fontSize: 24, fontWeight: 'bold', marginBottom: 20, - textAlign: 'left', - flex: 1, + textAlign: 'center', }, label: { marginBottom: 4, @@ -50,14 +49,6 @@ const defaultStyles: FeedbackFormStyles = { color: '#6a1b9a', fontSize: 16, }, - titleContainer: { - flexDirection: 'row', - width: '100%', - }, - sentryLogo: { - width: 40, - height: 40, - }, }; export default defaultStyles; diff --git a/packages/core/src/js/feedback/FeedbackForm.tsx b/packages/core/src/js/feedback/FeedbackForm.tsx index 1259c19e6..6bd8ca3cf 100644 --- a/packages/core/src/js/feedback/FeedbackForm.tsx +++ b/packages/core/src/js/feedback/FeedbackForm.tsx @@ -2,7 +2,7 @@ import { captureFeedback } from '@sentry/core'; import type { SendFeedbackParams } from '@sentry/types'; import * as React from 'react'; import type { KeyboardTypeOptions } from 'react-native'; -import { Alert, Image, Text, TextInput, TouchableOpacity, View } from 'react-native'; +import { Alert, Text, TextInput, TouchableOpacity, View } from 'react-native'; import { defaultConfiguration } from './defaults'; import defaultStyles from './FeedbackForm.styles'; @@ -78,12 +78,7 @@ export class FeedbackForm extends React.Component - - {text.formTitle} - {config.showBranding && ( - - )} - + {text.formTitle} {config.showName && ( <> diff --git a/packages/core/src/js/feedback/FeedbackForm.types.ts b/packages/core/src/js/feedback/FeedbackForm.types.ts index 7a900f3d4..aac7a1e1b 100644 --- a/packages/core/src/js/feedback/FeedbackForm.types.ts +++ b/packages/core/src/js/feedback/FeedbackForm.types.ts @@ -1,8 +1,5 @@ -import type { ImageStyle, TextStyle, ViewStyle } from 'react-native'; +import type { TextStyle, ViewStyle } from 'react-native'; -/** - * The props for the feedback form - */ export interface FeedbackFormProps extends FeedbackGeneralConfiguration, FeedbackTextConfiguration, FeedbackCallbacks { styles?: FeedbackFormStyles; } @@ -11,11 +8,6 @@ export interface FeedbackFormProps extends FeedbackGeneralConfiguration, Feedbac * General feedback configuration */ export interface FeedbackGeneralConfiguration { - /** - * Show the Sentry branding - */ - showBranding?: boolean; - /** * Should the email field be required? */ @@ -131,9 +123,6 @@ export interface FeedbackCallbacks { onFormClose?: () => void; } -/** - * The styles for the feedback form - */ export interface FeedbackFormStyles { container?: ViewStyle; title?: TextStyle; @@ -144,13 +133,8 @@ export interface FeedbackFormStyles { submitText?: TextStyle; cancelButton?: ViewStyle; cancelText?: TextStyle; - titleContainer?: ViewStyle; - sentryLogo?: ImageStyle; } -/** - * The state of the feedback form - */ export interface FeedbackFormState { isVisible: boolean; name: string; diff --git a/packages/core/src/js/feedback/defaults.ts b/packages/core/src/js/feedback/defaults.ts index 94a503651..5b0360ec4 100644 --- a/packages/core/src/js/feedback/defaults.ts +++ b/packages/core/src/js/feedback/defaults.ts @@ -30,7 +30,6 @@ export const defaultConfiguration: Partial = { }, // FeedbackGeneralConfiguration - showBranding: true, isEmailRequired: false, isNameRequired: false, showEmail: true, diff --git a/packages/core/test/feedback/FeedbackForm.test.tsx b/packages/core/test/feedback/FeedbackForm.test.tsx index a088216fc..de7ed90d0 100644 --- a/packages/core/test/feedback/FeedbackForm.test.tsx +++ b/packages/core/test/feedback/FeedbackForm.test.tsx @@ -36,7 +36,6 @@ const defaultProps: FeedbackFormProps = { formError: 'Please fill out all required fields.', emailError: 'The email address is not valid.', successMessageText: 'Feedback success', - showBranding: false, }; describe('FeedbackForm', () => {