fix: styles and texts

This commit is contained in:
vas3k
2025-05-23 21:29:51 +02:00
parent ca7d206b07
commit b32421f114
4 changed files with 5 additions and 5 deletions

View File

@@ -60,7 +60,7 @@ export const ItemsDetectTool = ({ file, data }: { file?: File; data: Transaction
</div>
{file && data.items && data.items.length > 1 && (
<Button onClick={handleSplit} className="mt-2 px-4 py-2" disabled={isSplitting}>
<Button variant="outline" onClick={handleSplit} className="mt-2 px-4 py-2" disabled={isSplitting}>
{isSplitting ? (
<>
<Loader2 className="w-4 h-4 mr-2 animate-spin" />

View File

@@ -217,7 +217,7 @@ export default function TransactionEditForm({
</div>
{formData.items && Array.isArray(formData.items) && formData.items.length > 0 && (
<ToolWindow title="Items or products detected">
<ToolWindow title="Detected items">
<ItemsDetectTool data={formData as TransactionData} />
</ToolWindow>
)}

View File

@@ -21,7 +21,7 @@ export function AnalyzeAllButton() {
}
return (
<div className="flex flex-row gap-2">
<div className="flex flex-row flex-wrap gap-2 justify-end">
<Button variant="outline" className="flex items-center gap-2" onClick={handleSaveAll}>
<Save className="h-4 w-4" />
Save all

View File

@@ -146,7 +146,7 @@ export default function AnalyzeForm({
<>
{file.isSplitted ? (
<div className="flex justify-end">
<Badge variant="outline">This file has been split</Badge>
<Badge variant="outline">This file has been split up</Badge>
</div>
) : (
<Button className="w-full mb-6 py-6 text-lg" onClick={startAnalyze} disabled={isAnalyzing} data-analyze-button>
@@ -303,7 +303,7 @@ export default function AnalyzeForm({
))}
{formData.items && formData.items.length > 0 && (
<ToolWindow title="Items or products detected">
<ToolWindow title="Detected items">
<ItemsDetectTool file={file} data={formData} />
</ToolWindow>
)}