Skip to content

Commit

Permalink
add passport
Browse files Browse the repository at this point in the history
  • Loading branch information
happylolonly committed May 29, 2024
1 parent af6a1a4 commit 2c6aa05
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
5 changes: 2 additions & 3 deletions front/src/pages/Main/Main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { Input } from "@/components/Input";
import DisplayTitle from "@/components/common/containerGradient/DisplayTitle/DisplayTitle";
import { Citizenship } from "@/types";
import MusicalAddress from "@/components/MusicalAddress/MusicalAddress";
import Passport from "./Passport/Passport";

const tele = (window as any).Telegram.WebApp;

Expand Down Expand Up @@ -132,9 +133,7 @@ const Main = () => {
wordBreak: "break-all",
}}
>
{passport.owner}
{JSON.stringify(passport)}
{/* <MusicalAddress address={passport.owner} /> */}
<Passport passport={passport} />
</div>
)}

Expand Down
14 changes: 14 additions & 0 deletions front/src/pages/Main/Passport/Passport.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { Citizenship } from "@/types";
import React from "react";

function Passport({ passport }: { passport: Citizenship }) {
return (
<div>
{JSON.stringify(passport)}

{/* <MusicalAddress address={passport.owner} /> */}
</div>
);
}

export default Passport;

0 comments on commit 2c6aa05

Please sign in to comment.