formatting
This commit is contained in:
12282
pnpm-lock.yaml
generated
12282
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -46,7 +46,7 @@ const LoginForm = () => {
|
||||
data: formData,
|
||||
});
|
||||
setToken(response.data.data.token);
|
||||
} catch (error) { }
|
||||
} catch (error) {}
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
@@ -13,14 +13,10 @@ const Player = ({ audioUrl }) => {
|
||||
<Box sx={{ display: "flex", alignItems: "center", gap: 1, justifyContent: "center" }}>
|
||||
<div ref={containerRef} style={{ width: 180 }} />
|
||||
<IconButton aria-label="play-pause" onClick={playPause}>
|
||||
{isPlaying ? (
|
||||
<PauseIcon sx={{ color: "#d32f2f" }} />
|
||||
) : (
|
||||
<PlayArrowIcon sx={{ color: "#1b4332" }} />
|
||||
)}
|
||||
{isPlaying ? <PauseIcon sx={{ color: "#d32f2f" }} /> : <PlayArrowIcon sx={{ color: "#1b4332" }} />}
|
||||
</IconButton>
|
||||
</Box>
|
||||
);
|
||||
};
|
||||
|
||||
export default Player;
|
||||
export default Player;
|
||||
|
||||
@@ -62,7 +62,7 @@ export const AuthProvider = ({ children }) => {
|
||||
}, []);
|
||||
|
||||
const logout = () => {
|
||||
clearToken()
|
||||
clearToken();
|
||||
clearUser();
|
||||
changeAuthState(false);
|
||||
changeInitAuth(true);
|
||||
|
||||
@@ -35,7 +35,7 @@ const useRequest = (initOptions) => {
|
||||
url,
|
||||
method,
|
||||
data: method === "get" ? null : mergedOptions.data,
|
||||
headers: { authorization: `Bearer ${token}`, ...mergedOptions.headers, },
|
||||
headers: { authorization: `Bearer ${token}`, ...mergedOptions.headers },
|
||||
});
|
||||
if (mergedOptions.hasSidebarUpdate) {
|
||||
if (method === "post" || method === "put" || method === "delete") sidebarUpdate();
|
||||
|
||||
Reference in New Issue
Block a user