Settings: added lang and region picker dialog
This commit is contained in:
		
							parent
							
								
									4ae3def190
								
							
						
					
					
						commit
						b09effa4dc
					
				
					 10 changed files with 316 additions and 75 deletions
				
			
		| 
						 | 
				
			
			@ -12,11 +12,16 @@ export function useSignedInProfiles() {
 | 
			
		|||
  });
 | 
			
		||||
  return [
 | 
			
		||||
    () => {
 | 
			
		||||
      const value = accessor();
 | 
			
		||||
      if (!value) {
 | 
			
		||||
        return sessions().map((x) => ({ ...x, inf: x.account.inf }));
 | 
			
		||||
      try {
 | 
			
		||||
        const value = accessor();
 | 
			
		||||
        if (value) {
 | 
			
		||||
          return value;
 | 
			
		||||
        }
 | 
			
		||||
      } catch (reason) {
 | 
			
		||||
        console.error("useSignedInProfiles: update acct info failed", reason);
 | 
			
		||||
      }
 | 
			
		||||
      return value;
 | 
			
		||||
 | 
			
		||||
      return sessions().map((x) => ({ ...x, inf: x.account.inf }));
 | 
			
		||||
    },
 | 
			
		||||
    tools,
 | 
			
		||||
  ] as const;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue