Compare commits
2 Commits
dc3d1ac60d
...
53ccfe1d4f
| Author | SHA1 | Date | |
|---|---|---|---|
|
53ccfe1d4f
|
|||
|
a5a2f8324e
|
@@ -30,6 +30,8 @@ export default function ModalHeader({
|
|||||||
<Button
|
<Button
|
||||||
className="absolute top-1 right-1 cursor-pointer"
|
className="absolute top-1 right-1 cursor-pointer"
|
||||||
onClick={onClose}
|
onClick={onClose}
|
||||||
|
size="sm"
|
||||||
|
variant="icon"
|
||||||
>
|
>
|
||||||
<BsXLg
|
<BsXLg
|
||||||
size={20}
|
size={20}
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ export function useToken(){
|
|||||||
const context = useContext(TokenContext);
|
const context = useContext(TokenContext);
|
||||||
|
|
||||||
if(!context){
|
if(!context){
|
||||||
throw new Error("useTOken must be called inside a TokenProvider");
|
throw new Error("useToken must be called inside a TokenProvider");
|
||||||
}
|
}
|
||||||
|
|
||||||
return context;
|
return context;
|
||||||
|
|||||||
Reference in New Issue
Block a user