Vat onboarding fixes (#39)
* fix: enhance validation for moms_period and conditionally set vat_number and moms_period based on vat_registered * Enhance preprocessing for first year fields, fiscal year end month, and accounting method in schema validation * fix: simplify schema validation by removing unnecessary preprocessors * fix: prevent setting invalid values in select components across multiple forms * fix: improve layout responsiveness and conditional rendering in onboarding steps
This commit is contained in:
@@ -786,20 +786,8 @@ export default function ImportPage() {
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{mode === null && (
|
||||
{mode === null && hasBankingExtension !== null && (
|
||||
<div className="grid gap-4 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4">
|
||||
{hasBankingExtension === null && (
|
||||
<Card className="animate-pulse">
|
||||
<CardContent className="pt-6 pb-6 flex flex-col items-center text-center space-y-3">
|
||||
<div className="h-12 w-12 rounded-full bg-muted" />
|
||||
<div className="space-y-2 w-full flex flex-col items-center">
|
||||
<div className="h-5 bg-muted rounded w-24" />
|
||||
<div className="h-4 bg-muted rounded w-48" />
|
||||
<div className="h-4 bg-muted rounded w-40" />
|
||||
</div>
|
||||
</CardContent>
|
||||
</Card>
|
||||
)}
|
||||
{hasBankingExtension === true && (
|
||||
<Card
|
||||
role="button"
|
||||
|
||||
Reference in New Issue
Block a user