mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
updating today URL that works
This commit is contained in:
parent
ed8677efaf
commit
80c8a7be6d
1 changed files with 6 additions and 7 deletions
|
|
@ -5,17 +5,15 @@ import { styled } from '../tokens/stitches.config'
|
|||
import { ProSidebar, Menu, MenuItem } from 'react-pro-sidebar'
|
||||
import 'react-pro-sidebar/dist/css/styles.css'
|
||||
|
||||
|
||||
const calculateTodayMenuItem = () => {
|
||||
const timeZoneHourDiff = -new Date().getTimezoneOffset() / 60
|
||||
|
||||
// console.log(timeZoneHourDiff.toLocaleString('en-US', {
|
||||
// signDisplay: 'always',
|
||||
// }))
|
||||
const hrefStr = `/home?q=in%3Ainbox+saved%3A${
|
||||
new Date(new Date().getTime() - 24 * 3600000).toISOString().split('T')[0]
|
||||
}Z${timeZoneHourDiff.toLocaleString('en-US', {
|
||||
signDisplay: 'always',
|
||||
})}Z%2B..*`
|
||||
}Z%${timeZoneHourDiff}B2..*`
|
||||
|
||||
console.log(hrefStr)
|
||||
return hrefStr
|
||||
}
|
||||
export const Menubar = () => {
|
||||
|
|
@ -23,7 +21,8 @@ export const Menubar = () => {
|
|||
<ProSidebar
|
||||
style={{
|
||||
display: 'inline-block',
|
||||
background: '$grayBgActive !important',
|
||||
background: '$grayBgActive',
|
||||
height: '100%',
|
||||
}}
|
||||
>
|
||||
<Menu iconShape="square" popperArrow={true}>
|
||||
|
|
|
|||
Loading…
Reference in a new issue