handle following and pinning feeds, acocunt createdAt

This commit is contained in:
Hailey
2024-06-10 00:41:03 -07:00
parent d2bdcc4c99
commit 6f188b0eb2
8 changed files with 98 additions and 43 deletions
@@ -1,15 +0,0 @@
import React from 'react'
import {useSetStarterPack} from 'state/preferences/starter-pack'
export function useStarterPackEntry() {
const setStarterPack = useSetStarterPack()
React.useEffect(() => {
const url = new URL(window.location.href)
const pathParts = url.pathname.split('/')
if (pathParts[0] === 'start' && pathParts.length === 2) {
setStarterPack(pathParts[1])
}
}, [setStarterPack])
}