mirror of
				https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
				synced 2025-11-04 08:13:43 +08:00 
			
		
		
		
	Fix & Refactor UI Page [Auth Page]
[+] fix(auth.tsx): fix conditional rendering of token input field [+] refactor(auth.tsx): improve code readability by using conditional rendering for token input field
This commit is contained in:
		@@ -43,6 +43,8 @@ export function AuthPage() {
 | 
			
		||||
          access.updateCode(e.currentTarget.value);
 | 
			
		||||
        }}
 | 
			
		||||
      />
 | 
			
		||||
      {!access.hideUserApiKey ? (
 | 
			
		||||
        <>
 | 
			
		||||
          <div className={styles["auth-tips"]}>{Locale.Auth.SubTips}</div>
 | 
			
		||||
          <input
 | 
			
		||||
            className={styles["auth-input"]}
 | 
			
		||||
@@ -53,6 +55,8 @@ export function AuthPage() {
 | 
			
		||||
              access.updateToken(e.currentTarget.value);
 | 
			
		||||
            }}
 | 
			
		||||
          />
 | 
			
		||||
        </>
 | 
			
		||||
      ) : null}
 | 
			
		||||
 | 
			
		||||
      <div className={styles["auth-actions"]}>
 | 
			
		||||
        <IconButton
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user