feat: Add "New Scan" button to AnalysisView
Introduces a "New Scan" button that triggers the reset functionality in the AnalysisView. This allows users to easily start a new analysis without needing to refresh the entire page.
This commit is contained in:
@@ -236,6 +236,13 @@ export const AnalysisView: React.FC<{ userData?: any }> = ({ userData }) => {
|
||||
</div>
|
||||
|
||||
<div className="flex gap-3">
|
||||
<button
|
||||
onClick={reset}
|
||||
disabled={isAnalyzing}
|
||||
className="w-1/3 bg-white/5 text-white py-3.5 rounded-xl font-black text-sm hover:bg-white/10 border border-white/10 transition-all active:scale-95 flex items-center justify-center gap-2 disabled:opacity-50 uppercase"
|
||||
>
|
||||
NOVO SCAN
|
||||
</button>
|
||||
<button
|
||||
onClick={handleStartAnalysis}
|
||||
disabled={isAnalyzing}
|
||||
|
||||
Reference in New Issue
Block a user