mirror of
https://github.com/marcogll/TaxHacker_s23.git
synced 2026-01-13 21:35:19 +00:00
fix: styles and texts
This commit is contained in:
@@ -60,7 +60,7 @@ export const ItemsDetectTool = ({ file, data }: { file?: File; data: Transaction
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{file && data.items && data.items.length > 1 && (
|
{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 ? (
|
{isSplitting ? (
|
||||||
<>
|
<>
|
||||||
<Loader2 className="w-4 h-4 mr-2 animate-spin" />
|
<Loader2 className="w-4 h-4 mr-2 animate-spin" />
|
||||||
|
|||||||
@@ -217,7 +217,7 @@ export default function TransactionEditForm({
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{formData.items && Array.isArray(formData.items) && formData.items.length > 0 && (
|
{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} />
|
<ItemsDetectTool data={formData as TransactionData} />
|
||||||
</ToolWindow>
|
</ToolWindow>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ export function AnalyzeAllButton() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
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}>
|
<Button variant="outline" className="flex items-center gap-2" onClick={handleSaveAll}>
|
||||||
<Save className="h-4 w-4" />
|
<Save className="h-4 w-4" />
|
||||||
Save all
|
Save all
|
||||||
|
|||||||
@@ -146,7 +146,7 @@ export default function AnalyzeForm({
|
|||||||
<>
|
<>
|
||||||
{file.isSplitted ? (
|
{file.isSplitted ? (
|
||||||
<div className="flex justify-end">
|
<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>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<Button className="w-full mb-6 py-6 text-lg" onClick={startAnalyze} disabled={isAnalyzing} data-analyze-button>
|
<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 && (
|
{formData.items && formData.items.length > 0 && (
|
||||||
<ToolWindow title="Items or products detected">
|
<ToolWindow title="Detected items">
|
||||||
<ItemsDetectTool file={file} data={formData} />
|
<ItemsDetectTool file={file} data={formData} />
|
||||||
</ToolWindow>
|
</ToolWindow>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user