mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-15 11:42:15 +01:00
add break time entries and simplified time tracker ui
This commit is contained in:
@@ -6,9 +6,10 @@ import { getWeekStartDayNumber } from '../utils/settings';
|
||||
export function useCalendarNavigation(callbacks: {
|
||||
onDatesChange: (payload: { start: Dayjs; end: Dayjs }) => void;
|
||||
scrollToCurrentTime: () => void;
|
||||
initialDate?: Dayjs | null;
|
||||
}) {
|
||||
const activeView = ref('timeGridWeek');
|
||||
const currentDate = ref(getLocalizedDayJs());
|
||||
const currentDate = ref(callbacks.initialDate ?? getLocalizedDayJs());
|
||||
|
||||
function getFirstDay(): number {
|
||||
return getWeekStartDayNumber();
|
||||
|
||||
Reference in New Issue
Block a user