Skip to content

Commit

Permalink
rm cert
Browse files Browse the repository at this point in the history
  • Loading branch information
zizdlp committed Aug 31, 2024
1 parent 1266018 commit 997e57e
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 39 deletions.
31 changes: 0 additions & 31 deletions zbook_backend/cert.pem

This file was deleted.

2 changes: 1 addition & 1 deletion zbook_backend/statik/statik.go

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion zbook_backend/zbook_backend.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ COPY app.env .
COPY start.sh .
COPY wait-for.sh .
COPY db/migration ./db/migration
COPY cert.pem ./cert.pem

# Set timezone data
ENV TZ=Etc/UTC
Expand Down
3 changes: 1 addition & 2 deletions zbook_frontend/src/components/comments/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@


```mermaid
graph TD
Expand All @@ -22,4 +21,4 @@ ListLevelTwoComment
```
```
8 changes: 5 additions & 3 deletions zbook_frontend/src/components/navbars/NavTheme.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,27 @@ import { useTheme } from "next-themes";
import { useState, useEffect, useContext } from "react";
import { OperationContext } from "@/providers/OperationProvider";
import NavBarIcon from "./NavBarIcon";

export default function Theme() {
const { theme, setTheme } = useTheme();
const [mounted, setMounted] = useState(false);
const { setMutationToggleTheme, mutationToggleTheme } =
useContext(OperationContext);

useEffect(() => {
setMounted(true);
}, []);

return (
<NavBarIcon
Icon={theme === "dark" ? MdDarkMode : MdLightMode}
onClick={() => {
if (theme == "dark") {
if (theme === "dark") {
setTheme("light");
setMutationToggleTheme(!mutationToggleTheme);
} else {
setTheme("dark");
setMutationToggleTheme(!mutationToggleTheme);
}
setMutationToggleTheme(!mutationToggleTheme);
}}
mounted={mounted}
/>
Expand Down
2 changes: 1 addition & 1 deletion zbook_frontend/src/components/navbars/NavUserState.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { signOut } from "@/auth";
import { Link } from "@/navigation";
import { RiLogoutBoxLine, RiLoginBoxLine } from "react-icons/ri";
import { auth } from "@/auth";
import { AiOutlineSearch, AiOutlineUser } from "react-icons/ai";
import { AiOutlineUser } from "react-icons/ai";
import GlobalSearchButton from "@/providers/dialogs/GlobalSearchButton";
export default async function UserState() {
const session = await auth();
Expand Down

0 comments on commit 997e57e

Please sign in to comment.