refactor: Update SessionView component to allow editing of "Text" field

Allow the "Text" field in the SessionView component to be editable along with the "Sender Name" and "Message" fields. This change improves the functionality of the component and provides a better user experience.
This commit is contained in:
anovazzi1 2024-06-12 10:05:03 -03:00
commit 400c851d7a

View file

@ -41,7 +41,7 @@ export default function SessionView({ rows }: { rows: Array<any> }) {
onCellEditRequest={(event) => {
handleUpdateMessage(event);
}}
editable={["Sender Name", "Message"]}
editable={["Sender Name", "Message", "Text"]}
overlayNoRowsTemplate="No data available"
onSelectionChanged={(event: SelectionChangedEvent) => {
setSelectedRows(event.api.getSelectedRows().map((row) => row.index));