formatting

This commit is contained in:
AmirHossein Mahmoodi
2025-08-13 09:23:20 +03:30
parent 10179dc726
commit f1ed5fa7ab
5 changed files with 7001 additions and 5295 deletions

4912
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -13,11 +13,7 @@ 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>
);

View File

@@ -62,7 +62,7 @@ export const AuthProvider = ({ children }) => {
}, []);
const logout = () => {
clearToken()
clearToken();
clearUser();
changeAuthState(false);
changeInitAuth(true);

View File

@@ -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();