Skip to content

Commit 8cad7f4

Browse files
committed
clean code
1 parent 98db547 commit 8cad7f4

6 files changed

Lines changed: 2 additions & 246 deletions

File tree

src/App.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ function App() {
3030
}
3131
// eslint-disable-next-line react-hooks/exhaustive-deps
3232
}, [onboardingCompleted, firstSeenDate])
33-
const [showRSSInput, setShowRSSInput] = useState(false)
3433

3534
useEffect(() => {
3635
setupAnalytics()
@@ -56,8 +55,6 @@ function App() {
5655
showSideBar={showSideBar}
5756
showSettings={showSettings}
5857
setShowSettings={setShowSettings}
59-
showRSSInput={showRSSInput}
60-
setShowRSSInput={setShowRSSInput}
6158
/>
6259
<ScrollCardsNavigator />
6360
<AppContentLayout setShowSettings={setShowSettings} />

src/components/Layout/Header.tsx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { ReactComponent as HackertabLogo } from 'src/assets/logo.svg'
66
import { SearchBar } from 'src/components/Elements/SearchBar'
77
import { UserTags } from 'src/components/Elements/UserTags'
88
import { Changelog } from 'src/features/changelog'
9-
import { RSSInputModal } from 'src/features/rssFeed'
109
import { SettingsModal } from 'src/features/settings'
1110
import { identifyUserTheme, trackThemeSelect } from 'src/lib/analytics'
1211
import { useBookmarks } from 'src/stores/bookmarks'
@@ -17,17 +16,13 @@ type HeaderProps = {
1716
setShowSideBar: (show: boolean) => void
1817
showSettings: boolean
1918
setShowSettings: (show: boolean) => void
20-
showRSSInput: boolean
21-
setShowRSSInput: (show: boolean) => void
2219
}
2320

2421
export const Header = ({
2522
showSideBar,
2623
setShowSideBar,
2724
showSettings,
2825
setShowSettings,
29-
showRSSInput,
30-
setShowRSSInput,
3126
}: HeaderProps) => {
3227
const [themeIcon, setThemeIcon] = useState(<BsMoon />)
3328
const isFirstRun = useRef(true)
@@ -78,13 +73,9 @@ export const Header = ({
7873
) : null
7974
}
8075

81-
const onAddSourceClick = () => {
82-
setShowRSSInput(true)
83-
}
8476
return (
8577
<>
8678
<SettingsModal showSettings={showSettings} setShowSettings={setShowSettings} />
87-
<RSSInputModal showRSSInput={showRSSInput} setShowRSSInput={setShowRSSInput} />
8879

8980
<header className="AppHeader">
9081
<span className="AppName">
@@ -106,9 +97,6 @@ export const Header = ({
10697
<BsFillBookmarksFill />
10798
<BookmarksBadgeCount />
10899
</button>
109-
<button className="extraBtn" onClick={onAddSourceClick}>
110-
<BsFillGearFill />
111-
</button>
112100
</div>
113101
<div className="break"></div>
114102
<UserTags onAddClicked={onSettingsClick} />

src/features/rssFeed/components/RSSInputModal.tsx

Lines changed: 0 additions & 106 deletions
This file was deleted.

src/features/rssFeed/components/rssModal.css

Lines changed: 0 additions & 124 deletions
This file was deleted.

src/features/rssFeed/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
const RSSInput = () => {}
2+
export default RSSInput

0 commit comments

Comments
 (0)