Skip to content

Commit

Permalink
Améliore l'affichage lors de la récupération d'un user côté grist
Browse files Browse the repository at this point in the history
  • Loading branch information
guillett committed Oct 3, 2024
1 parent ee8fbf3 commit 51aa20e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
Binary file added public/qrcode-http-m-zsms.fr.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/qrcode-zsms.fr.gif
Binary file not shown.
5 changes: 4 additions & 1 deletion src/components/onboarding/flow.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@ export function OnboardingFlow({ supabase, onOnboardingFinished }) {
<p>
Scannez ce QR code pour installer zSMS :
<br />
<img src="qrcode-zsms.fr.gif" alt="QR code vers m.zsms.fr" />
<img
src="qrcode-http-m-zsms.fr.gif"
alt="QR code vers m.zsms.fr"
/>
<br />
Vous pouvez aussi accéder aux instructions d'installation en
allant sur <strong>m.zsms.fr</strong> depuis votre téléphone.
Expand Down
9 changes: 9 additions & 0 deletions src/pages/grist.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import mustache from "mustache";

export default function Grist() {
const [supabase, setSupabase] = useState();
const [starting, setStarting] = useState(true);
const [user, setUser] = useState();
const [records, setRecords] = useState();
const [sending, setSending] = useState();
Expand Down Expand Up @@ -55,6 +56,12 @@ export default function Grist() {
});
}, []);

useEffect(() => {
if (user) {
setStarting(false);
}
}, [user]);

async function sendSMSs() {
setSentCount(0);
setSending(true);
Expand Down Expand Up @@ -247,6 +254,8 @@ export default function Grist() {
/>
)}
</LoggedInView>
) : starting ? (
<>Chargement en cours…</>
) : (
<>Il faut rafraîchir la page.</>
)}
Expand Down

0 comments on commit 51aa20e

Please sign in to comment.