Skip to content

Commit

Permalink
refactor: code refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
PKulkoRaccoonGang committed Jul 6, 2023
1 parent 92358d0 commit 7a79fa8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions www/src/components/LeaveFeedback.tsx
Original file line number Diff line number Diff line change
@@ -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<AnchorHTMLAttributes<HTMLAnchorElement>> {
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})&amp;labels=docs&template=feedback_template.md`;
const leaveFeedbackLinkTitle = 'Leave feedback';
Expand Down
2 changes: 1 addition & 1 deletion www/src/components/PageLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function Layout({
{children}
<Container size="md">
<hr />
<LeaveFeedback />
<LeaveFeedback className="mb-5" />
</Container>
</Col>
<Col
Expand Down

0 comments on commit 7a79fa8

Please sign in to comment.