File tree Expand file tree Collapse file tree
apps/polycentric/src/common/components/layout Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,6 +16,9 @@ stages:
1616 - publish
1717 - deploy
1818 - test
19+ variables :
20+ CARGO_HOME : ${CI_PROJECT_DIR}/.cargo
21+ CARGO_TARGET_DIR : ${CI_PROJECT_DIR}/target
1922default :
2023 tags :
2124 - dind_fast
Original file line number Diff line number Diff line change @@ -24,10 +24,19 @@ rn-android-build:
2424 cache :
2525 - key :
2626 files :
27+ - packages/rs-core/Cargo.lock
28+ prefix : rs-core-cargo-deps
29+ paths :
30+ - .cargo/registry/index
31+ - .cargo/registry/cache
32+ - .cargo/git/db
33+ - key :
34+ files :
35+ - packages/rs-core/Cargo.lock
2736 - pnpm-lock.yaml
28- prefix : ubrn- target
37+ prefix : rs-core- target-${CI_JOB_NAME}
2938 paths :
30- - node_modules/.pnpm/uniffi-bindgen-react-native@*/node_modules/uniffi-bindgen-react-native/ target
39+ - target
3140 script :
3241 - cd packages/react-native
3342 - |
Original file line number Diff line number Diff line change 1515 - .gitlab/ci/build_rs_core.yml
1616 variables :
1717 RUST_CORE_PATH : packages/rs-core
18- CARGO_HOME : ${CI_PROJECT_DIR}/.cargo
1918 cache :
2019 - key :
2120 files :
@@ -76,15 +75,10 @@ rs-core-uniffi-web-build:
7675 - key :
7776 files :
7877 - packages/rs-core/Cargo.lock
78+ - pnpm-lock.yaml
7979 prefix : rs-core-target-${CI_JOB_NAME}
8080 paths :
8181 - target
82- - key :
83- files :
84- - pnpm-lock.yaml
85- prefix : ubrn-target
86- paths :
87- - node_modules/.pnpm/uniffi-bindgen-react-native@*/node_modules/uniffi-bindgen-react-native/target
8882 script :
8983 - cd packages/rs-core-uniffi-web
9084 - |
Original file line number Diff line number Diff line change @@ -29,4 +29,6 @@ setup-image-rust:
2929 --frontend dockerfile.v0 \
3030 --local context=.gitlab/images/rust \
3131 --local dockerfile=.gitlab/images/rust \
32+ --import-cache type=registry,ref=$RUST_IMAGE \
33+ --export-cache type=inline \
3234 --output type=image,name=$RUST_IMAGE,push=true
Original file line number Diff line number Diff line change @@ -13,15 +13,16 @@ import {
1313import {
1414 KeyboardAvoidingView ,
1515 Platform ,
16- Pressable ,
16+ // Pressable,
1717 useWindowDimensions ,
1818 View ,
1919} from 'react-native' ;
2020import { useSafeAreaInsets } from 'react-native-safe-area-context' ;
2121
2222import { IdentityFooter } from '@/src/features/core/identity/IdentityFooter' ;
2323import { Ionicons } from '@expo/vector-icons' ;
24- import WEB_LOGO from '../../assets/images/polycentric-logo-blue-256.png' ;
24+ import BLUE_LOGO from '../../assets/images/polycentric-logo-blue-256.png' ;
25+ import WHITE_LOGO from '../../assets/images/polycentric-logo-white-256.png' ;
2526import { FUTO_URL , openCompose } from '../../constants' ;
2627import { useCurrentIdentity } from '../../lib/polycentric-hooks' ;
2728import { Button } from '../primitives' ;
@@ -183,6 +184,7 @@ export const LeftSidebar = memo(function LeftSidebar({
183184 ...props
184185} : LeftSidebarProps ) {
185186 const { width : deviceWidth } = useWindowDimensions ( ) ;
187+ const { theme } = useTheme ( ) ;
186188
187189 const { identity } = useCurrentIdentity ( ) ;
188190
@@ -237,7 +239,7 @@ export const LeftSidebar = memo(function LeftSidebar({
237239 ] }
238240 >
239241 < Image
240- source = { WEB_LOGO }
242+ source = { theme . scheme === 'dark' ? WHITE_LOGO : BLUE_LOGO }
241243 contentFit = "contain"
242244 style = { { width : 30 , height : 30 } }
243245 />
You can’t perform that action at this time.
0 commit comments