Add flexible date pickers and export options to stock dashboard
Introduces a reusable date picker component with support for single date, date range, and month selection. Updates the stock management page to allow exporting reports by daily, weekly, monthly, or custom date ranges using the new pickers. Refactors promotion form to use the new date picker for start and end dates. Adds more business quotes to the quotes config.
This commit is contained in:
@@ -75,7 +75,6 @@ export default function BroadcastDialog({ open, setOpen }: BroadcastDialogProps)
|
||||
const newText = textarea.value.substring(0, start) + insertText + textarea.value.substring(end);
|
||||
setBroadcastMessage(newText);
|
||||
|
||||
// Set cursor position after the inserted text
|
||||
const newCursorPos = start + insertText.length;
|
||||
textarea.focus();
|
||||
textarea.setSelectionRange(newCursorPos, newCursorPos);
|
||||
|
||||
Reference in New Issue
Block a user