- Distribution saved successfully. Bucket balances have been updated.
-
- )}
-
- {preview && (
-
- {preview.allocations.length > 0 ? (
-
- {preview.allocations.map((allocation) => (
-
-
-
- {allocation.bucket_type}
-
- {allocation.bucket_name}
-
-
-
- ${(allocation.allocated_amount / 100).toFixed(2)}
-
- {allocation.remaining_capacity !== null && (
-
- (${(allocation.remaining_capacity / 100).toFixed(2)} remaining)
-
- )}
-
-
- ))}
-
- ) : (
-
No buckets to allocate to.
- )}
-
-
- Total Allocated
- ${(preview.total_allocated / 100).toFixed(2)}
-
-
- {preview.unallocated > 0 && (
-
- Unallocated
- ${(preview.unallocated / 100).toFixed(2)}
-
- )}
-
- {preview.allocations.length > 0 && (
-
- )}
-
- )}
-