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