This repository has been archived by the owner on Mar 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 Correction de quelques bugs et suppression de chakra-ui
- Loading branch information
1 parent
b98aac9
commit 5ee9139
Showing
18 changed files
with
375,792 additions
and
526 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
{ | ||
"/js/app.js": "/js/app.js?id=55dec51a3bf9b41ffef4", | ||
"/css/application.css": "/css/application.css?id=6460c225c1513bfee32f", | ||
"/js/app.js.map": "/js/app.js.map?id=c51d3110c5c343ffa705", | ||
"/js/backend.js": "/js/backend.js?id=515555c10e07306c645b", | ||
"/js/backend.js.map": "/js/backend.js.map?id=a4f485ce092245d168d8" | ||
"/js/app.js": "/js/app.js", | ||
"/css/application.css": "/css/application.css", | ||
"/js/backend.js": "/js/backend.js" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import React from "react"; | ||
import { InertiaLink, usePage } from "@inertiajs/inertia-react"; | ||
|
||
import Transition from "@/components/Transition"; | ||
|
||
export default ({ show, onClose, message }: { show: boolean; onClose: () => void; message: string }) => { | ||
const { auth: { user } } = usePage(); | ||
|
||
return ( | ||
<Transition show={show}> | ||
<div className="fixed z-100 inset-0 flex items-end justify-center px-4 py-6 pointer-events-none sm:p-6 sm:items-start sm:justify-end"> | ||
<Transition | ||
enter="transform ease-out duration-300 transition" | ||
enterFrom="translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2" | ||
enterTo="translate-y-0 opacity-100 sm:translate-x-0" | ||
leave="transition ease-in duration-100" | ||
leaveFrom="opacity-100" | ||
leaveTo="opacity-0" | ||
> | ||
<div className="max-w-sm w-full bg-white shadow-lg rounded-lg pointer-events-auto"> | ||
<div className="rounded-lg shadow-xs overflow-hidden"> | ||
<div className="p-4"> | ||
<div className="flex items-start"> | ||
<div className="w-0 flex-1 flex justify-between"> | ||
<p className="w-0 flex-1 text-sm leading-5 font-medium text-gray-900"> | ||
{message} | ||
</p> | ||
{!user && ( | ||
<InertiaLink href="/login" className="ml-3 flex-shrink-0 text-sm leading-5 font-medium text-brand-primary hover:text-brand-900 focus:outline-none focus:underline transition ease-in-out duration-150"> | ||
Connexion | ||
</InertiaLink> | ||
)} | ||
</div> | ||
<div className="ml-4 flex-shrink-0 flex"> | ||
<button onClick={onClose} className="inline-flex text-gray-400 focus:outline-none focus:text-gray-500 transition ease-in-out duration-150"> | ||
<svg className="h-5 w-5" viewBox="0 0 20 20" fill="currentColor"> | ||
<path fillRule="evenodd" d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" clipRule="evenodd" /> | ||
</svg> | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</Transition> | ||
</div> | ||
</Transition> | ||
); | ||
}; |
Oops, something went wrong.