Skip to content

Commit

Permalink
Merge pull request #2339 from openedx/master
Browse files Browse the repository at this point in the history
sync: master to alpha
  • Loading branch information
edx-requirements-bot authored and PKulkoRaccoonGang committed Aug 5, 2024
1 parent 2cf913b commit da7498b
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions www/src/components/LeaveFeedback.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Nav, Button, Hyperlink } from '~paragon-react';
import { LEAVE_FEEDBACK_CLICKED_EVENT, sendUserAnalyticsEvent } from '../../segment-events';

export interface LeaveFeedbackProps extends Partial<AnchorHTMLAttributes<HTMLAnchorElement>> {
isNavLink?: boolean;
isNavLink?: boolean;
}

function LeaveFeedback({ isNavLink, ...props }: LeaveFeedbackProps) {
Expand All @@ -24,11 +24,9 @@ function LeaveFeedback({ isNavLink, ...props }: LeaveFeedbackProps) {
{...props}
>
{leaveFeedbackLinkTitle}
<Nav.Link onClick={handleLinkFeedbackClick} href={FEEDBACK_URL} target="_blank" {...props}>
Leave feedback
</Nav.Link>
);
}
</Nav.Link>
);
}

return (
<Button
Expand All @@ -46,11 +44,11 @@ function LeaveFeedback({ isNavLink, ...props }: LeaveFeedbackProps) {
}

LeaveFeedback.propTypes = {
isNavLink: PropTypes.bool,
isNavLink: PropTypes.bool,
};

LeaveFeedback.defaultProps = {
isNavLink: false,
isNavLink: false,
};

export default LeaveFeedback;

0 comments on commit da7498b

Please sign in to comment.