Move tabs and TabBar into UI package

This commit is contained in:
Gregor Vostrak
2026-03-23 17:25:26 +01:00
parent 5c6d84dc38
commit c19a0f9acc
35 changed files with 103 additions and 25 deletions

View File

@@ -1,8 +1,8 @@
<script setup lang="ts">
import { Button } from '..';
import { ChevronLeft, ChevronRight } from 'lucide-vue-next';
import { Tabs, TabsList } from '@/Components/ui/tabs';
import TabBarItem from '@/Components/Common/TabBar/TabBarItem.vue';
import { Tabs, TabsList } from '../tabs';
import TabBarItem from '../TabBar/TabBarItem.vue';
import CalendarSettingsPopover from './CalendarSettingsPopover.vue';
import type { CalendarSettings } from './calendarSettings';

View File

@@ -73,6 +73,7 @@ const props = defineProps<{
enableEstimatedTime: boolean;
currency: string;
canCreateProject: boolean;
organizationBillableRate: number | null;
createTimeEntry: (
entry: Omit<TimeEntry, 'id' | 'organization_id' | 'user_id'>
@@ -417,6 +418,7 @@ function getEventDurationSeconds(dayEvent: DayEvent, dayStr: string): number {
:create-tag="createTag"
:currency="currency"
:can-create-project="canCreateProject"
:organization-billable-rate="organizationBillableRate"
:tags="tags as any"
:projects="projects"
:tasks="tasks"
@@ -438,7 +440,8 @@ function getEventDurationSeconds(dayEvent: DayEvent, dayStr: string): number {
:tasks="tasks"
:clients="clients"
:currency="currency"
:can-create-project="canCreateProject" />
:can-create-project="canCreateProject"
:organization-billable-rate="organizationBillableRate" />
<template v-if="!loading">
<CalendarToolbar