Skip to content

Commit

Permalink
🎍🧂 ↝ [SSM-57 SSM-55 SSM-56 SSM-40 SSC-30 SSM-54]: Adding some more fl…
Browse files Browse the repository at this point in the history
…ow items and trying to improve mobile interface
  • Loading branch information
Gizmotronn committed Nov 7, 2024
1 parent 157a622 commit 2cfcd0b
Show file tree
Hide file tree
Showing 4 changed files with 334 additions and 63 deletions.
3 changes: 2 additions & 1 deletion app/starnet/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ import React from "react";
import StarnetLayout from "@/components/Layout/Starnet";
import MissionPathway from "@/components/Missions/Pathway";
import ProfileCardModal from "@/components/profile/form";
import StructureMissionGuide, { StructureMissionGuideMobile } from "@/components/Layout/Guide";

export default function Starnet() {
return (
<StarnetLayout>
<MissionPathway />
<StructureMissionGuideMobile />
</StarnetLayout>
);
};
8 changes: 6 additions & 2 deletions components/Data/unlockNewDataSources.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,18 +169,22 @@ export function DataSourcesModal({ structureId, structure }: DataSourcesModalPro
.eq("item", structureId)
.single();

const { data: updateDataO } = await supabase
.from("missions")
.insert([{ user: session.user.id, time_of_completion: new Date().toISOString(), mission: 200000015 }]);

if (error) throw error;

const newConfiguration: { "missions unlocked"?: string[] } = data?.configuration || {};

if (!newConfiguration["missions unlocked"]) {
newConfiguration["missions unlocked"] = [];
}
};

const missionsUnlocked = newConfiguration["missions unlocked"];
if (!missionsUnlocked.includes(item.identifier)) {
missionsUnlocked.push(item.identifier);
}
};

const { error: updateError } = await supabase
.from("inventory")
Expand Down
2 changes: 1 addition & 1 deletion components/Layout/BottomMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useState } from "react";
const menuItems = [
{ icon: Globe, label: "Planet", href: "/" },
{ icon: Pickaxe, label: "Mining", href: "/scenes/mining" },
{ icon: Star, label: "Travel", href: "/scenes/travel" },
{ icon: Star, label: "Discoveries", href: "/starnet/feed" },
{
icon: HelpCircle,
label: "Guide",
Expand Down
Loading

0 comments on commit 2cfcd0b

Please sign in to comment.