Skip to content

Commit

Permalink
Remove login success timeout change.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joerger committed Oct 28, 2024
1 parent 285ba88 commit f5c8854
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions web/packages/teleport/src/Login/LoginSuccess.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,12 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

import React, { useEffect } from 'react';
import React from 'react';
import { CardSuccessLogin } from 'design';

import { LogoHero } from 'teleport/components/LogoHero';

export function LoginSuccess() {
useEffect(() => {
const timeout = setTimeout(() => {
window.close();
}, 5000);

return () => {
clearTimeout(timeout);
};
}, []);
return (
<>
<LogoHero />
Expand Down

0 comments on commit f5c8854

Please sign in to comment.