ticket send
This commit is contained in:
+1
-1
@@ -82,7 +82,7 @@ define(['./workbox-e7681877'], (function (workbox) { 'use strict';
|
|||||||
"revision": "3ca0b8505b4bec776b69afdba2768812"
|
"revision": "3ca0b8505b4bec776b69afdba2768812"
|
||||||
}, {
|
}, {
|
||||||
"url": "index.html",
|
"url": "index.html",
|
||||||
"revision": "0.2fod7b7jhdg"
|
"revision": "0.tesij0n6d6o"
|
||||||
}], {});
|
}], {});
|
||||||
workbox.cleanupOutdatedCaches();
|
workbox.cleanupOutdatedCaches();
|
||||||
workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), {
|
workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), {
|
||||||
|
|||||||
@@ -85,6 +85,14 @@ const TicketDetail: FC = () => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const handleSendAnswer = () => {
|
||||||
|
const messageEndRef = document.getElementById('content');
|
||||||
|
if (messageEndRef) {
|
||||||
|
messageEndRef.scrollIntoView({ behavior: 'smooth' });
|
||||||
|
messageEndRef.focus();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='mt-4'>
|
<div className='mt-4'>
|
||||||
<Helmet>
|
<Helmet>
|
||||||
@@ -192,6 +200,7 @@ const TicketDetail: FC = () => {
|
|||||||
<Fragment>
|
<Fragment>
|
||||||
<div className='mt-9'>
|
<div className='mt-9'>
|
||||||
<Textarea
|
<Textarea
|
||||||
|
id='content'
|
||||||
label={t('ticket.answer')}
|
label={t('ticket.answer')}
|
||||||
placeholder={t('ticket.your_description')}
|
placeholder={t('ticket.your_description')}
|
||||||
value={formik.values.content}
|
value={formik.values.content}
|
||||||
@@ -235,6 +244,7 @@ const TicketDetail: FC = () => {
|
|||||||
<Button
|
<Button
|
||||||
label={t('ticket.send_answer')}
|
label={t('ticket.send_answer')}
|
||||||
className='text-xs xl:h-10 h-8'
|
className='text-xs xl:h-10 h-8'
|
||||||
|
onClick={handleSendAnswer}
|
||||||
/>
|
/>
|
||||||
<Button
|
<Button
|
||||||
className='bg-[#D52903] xl:h-10 h-8'
|
className='bg-[#D52903] xl:h-10 h-8'
|
||||||
|
|||||||
Reference in New Issue
Block a user