Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

1.1 KB
Raw Blame
import { ArrowLeft, Mail } from '@signozhq/icons';
import { Button } from '@signozhq/ui/button';

interface SuccessScreenProps {
	onBackToLogin: () => void;
}

function SuccessScreen({ onBackToLogin }: SuccessScreenProps): JSX.Element {
	return (
		<div className="login-form-container">
			<div className="forgot-password-form">
				<div className="login-form-header">
					<div className="login-form-emoji">
						<Mail size={32} />
					</div>
					<h4 className="forgot-password-title">Check your email</h4>
					<p className="forgot-password-description">
						We&apos;ve sent a password reset link to your email. Please check your
						inbox and follow the instructions to reset your password.
					</p>
				</div>

				<div className="login-form-actions forgot-password-actions">
					<Button
						size="md"
						variant="solid"
						color="primary"
						type="button"
						testId="back-to-login"
						width="100%"
						onClick={onBackToLogin}
						prefix={<ArrowLeft size={12} />}
					>
						Back to login
					</Button>
				</div>
			</div>
		</div>
	);
}

export default SuccessScreen;