frontend client for gemstone. decentralised workplace app

refactor: rename variable

serenity e5d21ed9 3414dded

Changed files
+4 -4
src
+2 -2
src/components/Settings/LatticeInfo.tsx
···
import { View } from "react-native";
export const LatticeInfo = ({
-
lattice: shard,
+
lattice,
}: {
lattice: {
uri: Required<AtUri>;
value: SystemsGmstnDevelopmentLattice;
};
}) => {
-
const latticeDomain = shard.uri.rKey;
+
const latticeDomain = lattice.uri.rKey;
const { isLoading, data: latticeInfo } = useQuery({
queryKey: ["shardInfo", latticeDomain],
queryFn: async () => {
+2 -2
src/components/Settings/RegisterLatticeModalContent.tsx
···
const agent = useOAuthAgentGuaranteed();
const session = useOAuthSessionGuaranteed();
const queryClient = useQueryClient();
-
const { mutate: newShardMutation, isPending: mutationPending } =
+
const { mutate: newLatticeMutation, isPending: mutationPending } =
useMutation({
mutationFn: async () => {
const registerResult = await registerNewLattice({
···
paddingVertical: 10,
}}
onPress={() => {
-
newShardMutation();
+
newLatticeMutation();
}}
>
{mutationPending ? (