Skip to content

Commit

Permalink
good for now
Browse files Browse the repository at this point in the history
  • Loading branch information
colinhartigan committed Sep 25, 2024
1 parent a71381f commit c4f6b08
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/Dashboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,11 @@ export default function Dashboard({}) {
{/* <Clock /> */}
<Notices />
</Box>
{/* {playerState?.is_playing && ( */}
{/* {playerState && ( */}
<Box gridColumn="2" gridRow="1" width="100%" height="100%">
<Music />
</Box>

{/* )} */}
<Box
gridColumn="1/5"
Expand Down
3 changes: 1 addition & 2 deletions src/components/Notices.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ This web site is using \`markedjs/marked\`.
`;
const markdown = `## Welcome to The HIVE!
### Fall 2024 hours
| | |
Expand Down Expand Up @@ -122,7 +121,7 @@ export default function Notices({}) {
const rect = mdRef?.current?.getBoundingClientRect();
const duration =
(rect.y - boxRef.current.clientHeight) / (scrollSpeed / 1000);
const fastDuration = duration / 6;
const fastDuration = duration / 8;

runScroll(duration, fastDuration);

Expand Down
2 changes: 1 addition & 1 deletion src/components/SpaceInfo.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const digitMap = [
];

export default function SpaceInfo({}) {
const { time, date, openState } = useTime();
const { time, openState } = useTime();

const timeHelper = useMemo(() => {
if (!openState?.openToday) return ["Closed", "Today"];
Expand Down
1 change: 0 additions & 1 deletion src/contexts/TimeContext.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ function TimeProvider({ children }) {
useEffect(() => {
const secondInterval = setInterval(() => {
if (timeRaw.format("m") === dayjs().format("m")) return;
console.log("tick");
setTime([dayjs().format("hh:mm"), dayjs().format("A")]);
setDate(dayjs().format("MMMM D, YYYY"));
setTimeRaw(dayjs());
Expand Down

0 comments on commit c4f6b08

Please sign in to comment.