Skip to content

Commit ce8b795

Browse files
committed
move footer to elements
1 parent 2cc38ab commit ce8b795

3 files changed

Lines changed: 6 additions & 7 deletions

File tree

src/App.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { useState, useEffect, useContext } from 'react'
22
import './App.css'
3-
import Footer from './components/Footer'
4-
import Header from './components/Header'
3+
import { Footer } from 'src/components/Layout'
4+
import Header from 'src/components/Header'
55
import BookmarksSidebar from './bookmark/BookmarksSidebar'
66
import { MarketingBanner } from 'src/components/Elements/MarketingBanner'
77
import ScrollCardsNavigator from './components/ScrollCardsNavigator'
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import React from 'react'
2-
import { APP } from '../Constants'
2+
import { APP } from '../../Constants'
33
import { RiCodeSSlashFill } from 'react-icons/ri'
44
import { HiLightBulb } from 'react-icons/hi'
55
import { trackPageView } from 'src/lib/analytics'
66

7-
function Footer({ feedbackWidget }) {
7+
export const Footer = () => {
88
const onSourceCodeClick = () => {
99
trackPageView('Source Code')
1010
window.open(APP.repository, '_blank')
@@ -30,7 +30,7 @@ function Footer({ feedbackWidget }) {
3030

3131
return (
3232
<footer className="AppFooter">
33-
<a className="linkItem" href="#" onClick={(e) => onNewFeatureRequest(e)}>
33+
<a className="linkItem" href="#" onClick={() => onNewFeatureRequest()}>
3434
<HiLightBulb className="linkItemIcon" /> New Feature?
3535
</a>
3636
<a className="linkItem" href="#" onClick={() => onSourceCodeClick()}>
@@ -46,5 +46,3 @@ function Footer({ feedbackWidget }) {
4646
</footer>
4747
)
4848
}
49-
50-
export default Footer

src/components/Layout/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from "./Footer"

0 commit comments

Comments
 (0)