github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/webapp/javascript/components/Settings/Security/index.tsx (about)

     1  import React from 'react';
     2  
     3  import { withCurrentUser } from '@webapp/redux/reducers/user';
     4  import ChangePasswordForm from './ChangePasswordForm';
     5  
     6  function Security(props: ShamefulAny) {
     7    const { currentUser } = props;
     8  
     9    if (!currentUser) return <></>;
    10  
    11    return (
    12      <>
    13        <ChangePasswordForm user={currentUser} />
    14      </>
    15    );
    16  }
    17  
    18  export default withCurrentUser(Security);