Skip to content

Commit

Permalink
Update UnsubscribeSurveyModal.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
zlwaterfield committed Aug 1, 2024
1 parent a343602 commit 60e7c77
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions frontend/src/lib/lemon-ui/LemonCheckbox/LemonCheckbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export interface LemonCheckboxProps {
bordered?: boolean
/** @deprecated See https://github.com/PostHog/posthog/pull/9357#pullrequestreview-933783868. */
color?: string
dataAttr?: string
}

export interface BoxCSSProperties extends React.CSSProperties {
Expand Down Expand Up @@ -49,6 +50,7 @@ export function LemonCheckbox({
bordered,
color,
size,
dataAttr,
}: LemonCheckboxProps): JSX.Element {
const indeterminate = checked === 'indeterminate'
disabled = disabled || !!disabledReason
Expand Down Expand Up @@ -82,6 +84,7 @@ export function LemonCheckbox({
size && `LemonCheckbox--${size}`,
className
)}
data-attr={dataAttr}
>
<input
className="LemonCheckbox__input"
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/scenes/billing/UnsubscribeSurveyModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export const UnsubscribeSurveyModal = ({
bordered
key={reason}
label={reason}
data-attr={`unsubscribe-reason-${reason.toLowerCase().replace(' ', '-')}`}
dataAttr={`unsubscribe-reason-${reason.toLowerCase().replace(' ', '-')}`}
checked={surveyResponse['$survey_reasons'].includes(reason)}
onChange={() => toggleSurveyReason(reason)}
className="w-full"
Expand Down

0 comments on commit 60e7c77

Please sign in to comment.