Skip to content

Commit

Permalink
Update SharePage.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
AkekoChan committed Mar 21, 2024
1 parent 6b0ddc1 commit 13e5dbd
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions client/src/pages/flami/SharePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { useNavigate } from "react-router";
import { Button } from "../../components/ui";
import { useGeolocated } from "react-geolocated";
import { useTheme } from "../../hooks/useTheme";
import MyFlamiDisplay from "../../components/flami/MyFlamiDisplay";
import MyFlamiDisplay from "../../components/flami/myFlamiDisplay";

const SharePage = () => {
const { token } = useAuth();
Expand Down Expand Up @@ -44,7 +44,12 @@ const SharePage = () => {
<div className="flex flex-col gap-8 mb-24">
<TopBar title="Partager Flami" hasReturn={true} prevPage="/" />
<div className="flex flex-col gap-8">
{ flami ? <MyFlamiDisplay animation="Idle" myFlami={flami.kept_flami || flami.my_flami} /> : null }
{flami ? (
<MyFlamiDisplay
animation="Idle"
myFlami={flami.kept_flami || flami.my_flami}
/>
) : null}
<div className="w-100 flex gap-8 items-center">
<div className="flex flex-col gap-1 w-2/3 text-alabaster-50">
{flami?.kept_flami ? (
Expand All @@ -71,7 +76,7 @@ const SharePage = () => {
size={400}
style={{ height: "auto", maxWidth: "100%", width: "100%" }}
value={JSON.stringify({
expires: new Date().getTime() + (60 * 1000 * 10),
expires: new Date().getTime() + 60 * 1000 * 10,
id: flami?.my_flami.owner,
location: {
latitude: coords?.latitude || null,
Expand Down

0 comments on commit 13e5dbd

Please sign in to comment.