updates on the map configuration and the design
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { memo, useState } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { AiOutlineCopy as CopyOutlined } from 'react-icons/ai';
|
||||
import { LuChevronDown } from 'react-icons/lu';
|
||||
import { LuChevronDown, LuDownload } from 'react-icons/lu';
|
||||
|
||||
import { HStack } from '@astryxdesign/core/HStack';
|
||||
import { VStack } from '@astryxdesign/core/VStack';
|
||||
@@ -112,7 +112,9 @@ const AssistantMessage = ({ message, onCopy, onSubmitForm, onCancelAction, onCho
|
||||
{/* A conversational step that needs a dropdown rather than typing. */}
|
||||
{message.liveStop && (
|
||||
<VStack className="dai-action" gap={1} padding={0}>
|
||||
<Button label="Stop" variant="secondary" size="sm" onClick={() => onStopLive(message)} />
|
||||
<Button variant="secondary" size="sm" onClick={() => onStopLive(message)}>
|
||||
Stop
|
||||
</Button>
|
||||
</VStack>
|
||||
)}
|
||||
|
||||
@@ -195,11 +197,16 @@ const AssistantMessage = ({ message, onCopy, onSubmitForm, onCancelAction, onCho
|
||||
{message.downloadRows?.length > 0 && (
|
||||
<VStack className="dai-action" gap={1} padding={0}>
|
||||
<Button
|
||||
label={`Download the ${message.downloadRows.length} row${message.downloadRows.length === 1 ? '' : 's'} that didn’t go through`}
|
||||
variant="secondary"
|
||||
variant="outline"
|
||||
size="sm"
|
||||
className="flex items-center justify-center gap-2 text-xs font-medium text-slate-700 bg-white border border-slate-200 hover:bg-slate-50 hover:text-slate-900 rounded-lg px-3.5 py-2 w-full shadow-2xs transition-colors cursor-pointer"
|
||||
onClick={() => downloadCsv('doormile-bulk-orders-unsendable.csv', failedRowsCsv(message.downloadRows))}
|
||||
/>
|
||||
>
|
||||
<LuDownload className="w-3.5 h-3.5 text-slate-500 shrink-0" />
|
||||
<span>
|
||||
Download {message.downloadRows.length} unsendable row{message.downloadRows.length === 1 ? '' : 's'} (CSV)
|
||||
</span>
|
||||
</Button>
|
||||
</VStack>
|
||||
)}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user