Fixed harmless icon svg errors

This commit is contained in:
keannu125 2023-03-04 21:37:15 +08:00
parent c222ab0078
commit 05c7804421
4 changed files with 15 additions and 15 deletions

View file

@ -9,11 +9,11 @@ export default function AppIcon(props: IconProps) {
width={props.size + "px"}
height={props.size + "px"}
viewBox="0 0 24 24"
stroke-width="2"
strokeWidth="2"
stroke={props.color}
fill="none"
stroke-linecap="round"
stroke-linejoin="round"
strokeLinecap="round"
strokeLinejoin="round"
>
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<path d="M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2"></path>

View file

@ -24,11 +24,11 @@ export default function HomeIcon(props: IconProps) {
width={props.size - 4 + "px"}
height={props.size - 4 + "px"}
viewBox="0 0 24 24"
stroke-width="2"
strokeWidth="2"
stroke={props.color}
fill="none"
stroke-linecap="round"
stroke-linejoin="round"
strokeLinecap="round"
strokeLinejoin="round"
>
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<path d="M5 12l-2 0l9 -9l9 9l-2 0"></path>

View file

@ -16,13 +16,6 @@ export default function Notes() {
error,
} = useQuery("notes", GetNotes, { retry: 0 });
const logged_in = useSelector((state: LoginState) => state.Login.logged_in);
if (!logged_in) {
return (
<div style={styles.note}>
<p style={styles.text_medium}>Please login to use Clip Notes</p>
</div>
);
}
if (error) {
return (
<div style={styles.note}>
@ -35,6 +28,13 @@ export default function Notes() {
<p style={styles.text_medium}>Loading Notes...</p>
</div>
);
}
if (!logged_in) {
return (
<div style={styles.note}>
<p style={styles.text_medium}>Please login to use Clip Notes</p>
</div>
);
} else if (notes.length === 0) {
return (
<div style={styles.note}>

View file

@ -1,11 +1,11 @@
import styles from "../../styles";
import Header from "../../Components/Header/Header";
import NoteMapper from "../../Components/Notes/Notes";
import Notes from "../../Components/Notes/Notes";
export default function Home() {
return (
<div style={styles.background}>
<Header />
<NoteMapper />
<Notes />
</div>
);
}