Skip to content

Commit 620ce6d

Browse files
committed
refactor: Update lunar-phase-card.ts for improved graph display and interactivity
1 parent 42655a0 commit 620ce6d

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/lunar-phase-card.ts

+1-11
Original file line numberDiff line numberDiff line change
@@ -545,24 +545,14 @@ export class LunarPhaseCard extends LitElement {
545545
${choose(
546546
graphType,
547547
[
548-
['dynamic', () => dynamicGraph],
549548
['default', () => defaultGraph],
549+
['dynamic', () => dynamicGraph],
550550
],
551551
() => defaultGraph
552552
)}
553553
`;
554554
}
555555

556-
private updateDate(action?: 'next' | 'prev') {
557-
const date = new Date(this._date);
558-
date.setHours(0, 0, 0, 0);
559-
if (action === 'next') {
560-
date.setDate(date.getDate() + 1);
561-
} else if (action === 'prev') {
562-
date.setDate(date.getDate() - 1);
563-
}
564-
this.selectedDate = date;
565-
}
566556

567557
private togglePage = (page: PageType) => {
568558
this._activeCard = this._activeCard === page ? this._defaultCard : page;

0 commit comments

Comments
 (0)