From 7a79fa8e52574acc1f61290cac088323a7dd7f4b Mon Sep 17 00:00:00 2001 From: PKulkoRaccoonGang Date: Thu, 6 Jul 2023 22:07:48 +0300 Subject: [PATCH] refactor: code refactoring --- www/src/components/LeaveFeedback.tsx | 6 +++--- www/src/components/PageLayout.tsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/www/src/components/LeaveFeedback.tsx b/www/src/components/LeaveFeedback.tsx index cf0b21a068..1c5793b13e 100644 --- a/www/src/components/LeaveFeedback.tsx +++ b/www/src/components/LeaveFeedback.tsx @@ -1,13 +1,13 @@ -import React from 'react'; +import React, { AnchorHTMLAttributes } from 'react'; import PropTypes from 'prop-types'; import { Button, Hyperlink } from '~paragon-react'; import { useLocation } from '@reach/router'; -export interface LeaveFeedbackProps { +export interface LeaveFeedbackProps extends Partial> { isLink?: boolean; } -function LeaveFeedback({ isLink }, props: LeaveFeedbackProps) { +function LeaveFeedback({ isLink, ...props }: LeaveFeedbackProps) { const location = useLocation(); const FEEDBACK_URL = `https://github.com/openedx/paragon/issues/new?title=%5Bparagon-openedx.netlify.app%5D%20Feedback%20(on%20${location.pathname})&labels=docs&template=feedback_template.md`; const leaveFeedbackLinkTitle = 'Leave feedback'; diff --git a/www/src/components/PageLayout.tsx b/www/src/components/PageLayout.tsx index 17f960bdf6..d6dfe00519 100644 --- a/www/src/components/PageLayout.tsx +++ b/www/src/components/PageLayout.tsx @@ -84,7 +84,7 @@ function Layout({ {children}
- +