frontend client for gemstone. decentralised workplace app
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

refactor: rename variable

serenity a9956608 b77d5d69

+8 -8
+2 -2
src/components/Settings/LatticeInfo.tsx
··· 9 9 import { View } from "react-native"; 10 10 11 11 export const LatticeInfo = ({ 12 - shard, 12 + lattice: shard, 13 13 }: { 14 - shard: { 14 + lattice: { 15 15 uri: Required<AtUri>; 16 16 value: SystemsGmstnDevelopmentLattice; 17 17 };
+6 -6
src/components/Settings/LatticeSettings.tsx
··· 80 80 marginLeft: 8, 81 81 }} 82 82 > 83 - {lattices.map((shard, idx) => ( 84 - <LatticeInfo key={idx} shard={shard} /> 83 + {lattices.map((lattice, idx) => ( 84 + <LatticeInfo key={idx} lattice={lattice} /> 85 85 ))} 86 86 </View> 87 87 </View> ··· 170 170 }; 171 171 172 172 const latticeQueryFn = async (session: OAuthSession) => { 173 - const shards = await getUserLattices({ 173 + const lattices = await getUserLattices({ 174 174 pdsEndpoint: session.serverMetadata.issuer, 175 175 did: session.did, 176 176 }); 177 177 178 - if (!shards.ok) { 179 - console.error("shardQueryFn error.", shards.error); 178 + if (!lattices.ok) { 179 + console.error("shardQueryFn error.", lattices.error); 180 180 throw new Error( 181 181 `Something went wrong while getting the user's membership records.}`, 182 182 ); 183 183 } 184 184 185 - const results = shards.data 185 + const results = lattices.data 186 186 .map((record) => { 187 187 const convertResult = stringToAtUri(record.uri); 188 188 if (!convertResult.ok) {