fix: add missing showTimeInMonthView and showOnMobile type definitions to settings store
This commit is contained in:
@@ -18,6 +18,7 @@ interface SidebarAppFormData {
|
|||||||
url: string;
|
url: string;
|
||||||
icon: string;
|
icon: string;
|
||||||
openMode: 'tab' | 'inline';
|
openMode: 'tab' | 'inline';
|
||||||
|
showOnMobile: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
function SidebarAppForm({
|
function SidebarAppForm({
|
||||||
@@ -37,6 +38,7 @@ function SidebarAppForm({
|
|||||||
url: app?.url || '',
|
url: app?.url || '',
|
||||||
icon: app?.icon || 'Globe',
|
icon: app?.icon || 'Globe',
|
||||||
openMode: app?.openMode || 'tab',
|
openMode: app?.openMode || 'tab',
|
||||||
|
showOnMobile: app?.showOnMobile ?? false,
|
||||||
});
|
});
|
||||||
const [errors, setErrors] = useState<Record<string, string>>({});
|
const [errors, setErrors] = useState<Record<string, string>>({});
|
||||||
|
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ export interface SidebarApp {
|
|||||||
url: string;
|
url: string;
|
||||||
icon: string; // Lucide icon name (e.g. 'Globe', 'Rss')
|
icon: string; // Lucide icon name (e.g. 'Globe', 'Rss')
|
||||||
openMode: 'tab' | 'inline'; // Open in new tab or embed inline
|
openMode: 'tab' | 'inline'; // Open in new tab or embed inline
|
||||||
|
showOnMobile: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Available color palette for keywords
|
// Available color palette for keywords
|
||||||
@@ -106,6 +107,9 @@ interface SettingsState {
|
|||||||
sessionTimeout: number; // minutes (0 = never)
|
sessionTimeout: number; // minutes (0 = never)
|
||||||
trustedSenders: string[]; // Email addresses that can load external content
|
trustedSenders: string[]; // Email addresses that can load external content
|
||||||
|
|
||||||
|
// Calendar
|
||||||
|
showTimeInMonthView: boolean;
|
||||||
|
|
||||||
// Calendar Notifications
|
// Calendar Notifications
|
||||||
calendarNotificationsEnabled: boolean;
|
calendarNotificationsEnabled: boolean;
|
||||||
calendarNotificationSound: boolean;
|
calendarNotificationSound: boolean;
|
||||||
@@ -201,6 +205,9 @@ const DEFAULT_SETTINGS = {
|
|||||||
sessionTimeout: 0, // Never
|
sessionTimeout: 0, // Never
|
||||||
trustedSenders: [] as string[],
|
trustedSenders: [] as string[],
|
||||||
|
|
||||||
|
// Calendar
|
||||||
|
showTimeInMonthView: false,
|
||||||
|
|
||||||
// Calendar Notifications
|
// Calendar Notifications
|
||||||
calendarNotificationsEnabled: true,
|
calendarNotificationsEnabled: true,
|
||||||
calendarNotificationSound: true,
|
calendarNotificationSound: true,
|
||||||
@@ -284,6 +291,7 @@ export const useSettingsStore = create<SettingsState>()(
|
|||||||
calendarNotificationsEnabled: state.calendarNotificationsEnabled,
|
calendarNotificationsEnabled: state.calendarNotificationsEnabled,
|
||||||
calendarNotificationSound: state.calendarNotificationSound,
|
calendarNotificationSound: state.calendarNotificationSound,
|
||||||
calendarInvitationParsingEnabled: state.calendarInvitationParsingEnabled,
|
calendarInvitationParsingEnabled: state.calendarInvitationParsingEnabled,
|
||||||
|
showTimeInMonthView: state.showTimeInMonthView,
|
||||||
toolbarPosition: state.toolbarPosition,
|
toolbarPosition: state.toolbarPosition,
|
||||||
senderFavicons: state.senderFavicons,
|
senderFavicons: state.senderFavicons,
|
||||||
folderIcons: state.folderIcons,
|
folderIcons: state.folderIcons,
|
||||||
|
|||||||
Reference in New Issue
Block a user