Fix images
This commit is contained in:
10 files changed
+44
-13
No files matched your search
@@ -35,6 +35,9 @@ import { useDrawerStore } from "../../utils/store/drawer";
|
||||
import { delServer } from "../../utils/storage/servers";
|
||||
import { delUser } from "../../utils/storage/user";
|
||||
import { MdiDelete } from "../icons/mdiDelete";
|
||||
|
||||
import logo from "../../assets/logo.png";
|
||||
|
||||
export const AppBar = () => {
|
||||
const navigate = useNavigate();
|
||||
|
||||
@@ -100,7 +103,7 @@ export const AppBar = () => {
|
||||
if (display) {
|
||||
return (
|
||||
<MuiAppBar
|
||||
sx={{
|
||||
style={{
|
||||
backgroundColor: "transparent",
|
||||
paddingRight: "0 !important",
|
||||
}}
|
||||
@@ -140,17 +143,11 @@ export const AppBar = () => {
|
||||
>
|
||||
<MdiArrowLeft />
|
||||
</IconButton>
|
||||
|
||||
<TextField
|
||||
variant="outlined"
|
||||
placeholder="Search..."
|
||||
size="small"
|
||||
/>
|
||||
<IconButton>
|
||||
</div>
|
||||
<div style={{ display: "flex", gap: "1.2em" }}>
|
||||
<IconButton disabled>
|
||||
<MdiMagnify />
|
||||
</IconButton>
|
||||
</div>
|
||||
<div style={{ display: "flex", gap: "2em" }}>
|
||||
<IconButton disabled>
|
||||
<MdiHeartOutline />
|
||||
</IconButton>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
backdrop-filter $transition-time-fast,
|
||||
box-shadow $transition-time-default !important;
|
||||
&.backdropVisible {
|
||||
background-color: $clr-background-dark-opacity-0_8;
|
||||
background-color: $clr-background-dark-opacity-0_8 !important;
|
||||
backdrop-filter: blur(30px);
|
||||
}
|
||||
&-avatar {
|
||||
@@ -14,6 +14,9 @@
|
||||
fill: url(#clr-gradient-default) !important;
|
||||
}
|
||||
}
|
||||
&-logo {
|
||||
height: 1.8em !important;
|
||||
}
|
||||
}
|
||||
|
||||
.appLoading {
|
||||
|
||||
@@ -11,8 +11,7 @@ import Chip from "@mui/material/Chip";
|
||||
import Button from "@mui/material/Button";
|
||||
|
||||
import { yellow } from "@mui/material/colors";
|
||||
|
||||
import { ErrorBoundary } from "react-error-boundary";
|
||||
import ErrorBoundary from "../errorBoundary";
|
||||
|
||||
import CarouselSlideError from "../errors/carousel";
|
||||
import { MdiStar } from "../icons/mdiStar";
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
/** @format */
|
||||
import React from "react";
|
||||
class ErrorBoundary extends React.Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = { hasError: false };
|
||||
}
|
||||
|
||||
static getDerivedStateFromError(error) {
|
||||
// Update state so the next render will show the fallback UI.
|
||||
return { hasError: true };
|
||||
}
|
||||
|
||||
componentDidCatch(error, info) {
|
||||
// Example "componentStack":
|
||||
// in ComponentThatThrows (created by App)
|
||||
// in ErrorBoundary (created by App)
|
||||
// in div (created by App)
|
||||
// in App
|
||||
logErrorToMyService(error, info.componentStack);
|
||||
}
|
||||
|
||||
render() {
|
||||
if (this.state.hasError) {
|
||||
// You can render any custom fallback UI
|
||||
return this.props.fallback;
|
||||
}
|
||||
|
||||
return this.props.children;
|
||||
}
|
||||
}
|
||||
export default ErrorBoundary;
|
||||
Reference in new issue
Block a user