Skip to content

Commit

Permalink
Rename "Audit Log" to "Join History" based on feedback from @ayrock-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Hacksore committed Feb 11, 2024
1 parent 5ee02fe commit d7ee968
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion apps/desktop/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export interface VoiceStateUser {
user: VoiceUser;
}

export interface AuditLogUser extends OverlayedUser {
export interface JoinHistoryLogUser extends OverlayedUser {
event: "join" | "leave";
timestamp: number;
}
10 changes: 5 additions & 5 deletions apps/desktop/src/views/settings/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { UpdateStatus } from "@tauri-apps/api/updater";
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
import { Account } from "./account";
import { Developer } from "./developer";
import { Audit } from "./audit";
import { JoinHistory } from "./join-history";
import { useState } from "react";

export const SettingsView = ({
Expand All @@ -24,7 +24,7 @@ export const SettingsView = ({
<TabsList className="grid w-full grid-cols-3">
<TabsTrigger value="account">General</TabsTrigger>
<TabsTrigger value="developer">Developer</TabsTrigger>
<TabsTrigger value="audit">Audit Log</TabsTrigger>
<TabsTrigger value="join-history">Join History</TabsTrigger>
</TabsList>

{update.isAvailable && <Updater update={update} />}
Expand All @@ -36,9 +36,9 @@ export const SettingsView = ({
<TabsContent value="developer">
<Developer />
</TabsContent>
<TabsContent forceMount value="audit">
<div style={{ display: currentTab === "audit" ? "block" : "none" }}>
<Audit />
<TabsContent forceMount value="join-history">
<div style={{ display: currentTab === "join-history" ? "block" : "none" }}>
<JoinHistory />
</div>
</TabsContent>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { listen } from "@tauri-apps/api/event";
import { Event } from "@/constants";

const MAX_LOG_LENGTH = 100;
export const Audit = () => {
export const JoinHistory = () => {
const [userLog, setUserLog] = useState<any[]>([]);
useEffect(() => {
const listener = async () => {
Expand All @@ -32,7 +32,7 @@ export const Audit = () => {
return (
<div className="flex flex-col text-center h-screen pb-4">
<div className="flex items-center pb-4">
<p className="text-2xl">Audit Log</p>
<p className="text-2xl">Join History</p>
<Button onClick={resetUserLog} variant="ghost" size="sm" className="w-20">
<Eraser size={18} />
</Button>
Expand Down

0 comments on commit d7ee968

Please sign in to comment.