[Clipclops] New routes with placeholder screens (#3725)
* add new routes with placeholder screens * gate content * add filled envelope style * swap filled state * switch to `useAgent`
This commit is contained in:
		
							parent
							
								
									1af59ca8a7
								
							
						
					
					
						commit
						ce85375c85
					
				
					 21 changed files with 486 additions and 19 deletions
				
			
		| 
						 | 
				
			
			@ -12,6 +12,7 @@ import {
 | 
			
		|||
  useNavigationState,
 | 
			
		||||
} from '@react-navigation/native'
 | 
			
		||||
 | 
			
		||||
import {useGate} from '#/lib/statsig/statsig'
 | 
			
		||||
import {isInvalidHandle} from '#/lib/strings/handles'
 | 
			
		||||
import {emitSoftReset} from '#/state/events'
 | 
			
		||||
import {useFetchHandle} from '#/state/queries/handle'
 | 
			
		||||
| 
						 | 
				
			
			@ -46,6 +47,8 @@ import {LoadingPlaceholder} from 'view/com/util/LoadingPlaceholder'
 | 
			
		|||
import {PressableWithHover} from 'view/com/util/PressableWithHover'
 | 
			
		||||
import {Text} from 'view/com/util/text/Text'
 | 
			
		||||
import {UserAvatar} from 'view/com/util/UserAvatar'
 | 
			
		||||
import {Envelope_Stroke2_Corner0_Rounded as Envelope} from '#/components/icons/Envelope'
 | 
			
		||||
import {Envelope_Filled_Stroke2_Corner0_Rounded as EnvelopeFilled} from '#/components/icons/Envelope'
 | 
			
		||||
import {router} from '../../../routes'
 | 
			
		||||
 | 
			
		||||
function ProfileCard() {
 | 
			
		||||
| 
						 | 
				
			
			@ -272,6 +275,7 @@ export function DesktopLeftNav() {
 | 
			
		|||
  const {_} = useLingui()
 | 
			
		||||
  const {isDesktop, isTablet} = useWebMediaQueries()
 | 
			
		||||
  const numUnread = useUnreadNotifications()
 | 
			
		||||
  const gate = useGate()
 | 
			
		||||
 | 
			
		||||
  if (!hasSession && !isDesktop) {
 | 
			
		||||
    return null
 | 
			
		||||
| 
						 | 
				
			
			@ -346,6 +350,16 @@ export function DesktopLeftNav() {
 | 
			
		|||
            }
 | 
			
		||||
            label={_(msg`Notifications`)}
 | 
			
		||||
          />
 | 
			
		||||
          {gate('dms') && (
 | 
			
		||||
            <NavItem
 | 
			
		||||
              href="/messages"
 | 
			
		||||
              icon={<Envelope style={pal.text} width={isDesktop ? 26 : 30} />}
 | 
			
		||||
              iconFilled={
 | 
			
		||||
                <EnvelopeFilled style={pal.text} width={isDesktop ? 26 : 30} />
 | 
			
		||||
              }
 | 
			
		||||
              label={_(msg`Messages`)}
 | 
			
		||||
            />
 | 
			
		||||
          )}
 | 
			
		||||
          <NavItem
 | 
			
		||||
            href="/feeds"
 | 
			
		||||
            icon={
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue