Skip to content

Commit

Permalink
fix: clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Carsten Koch committed Nov 23, 2024
1 parent bb99960 commit 515b73f
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 115 deletions.
6 changes: 2 additions & 4 deletions api/useInbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ import {
} from "./helpers/activity";
const client = generateClient<Schema>();

export type HandleMutationFn = (item: Inbox, callApi?: boolean) => void;

export type InboxStatus = Schema["InboxStatus"]["type"];
type InboxStatus = Schema["InboxStatus"]["type"];

export type Inbox = {
id: string;
Expand All @@ -48,7 +46,7 @@ export const debouncedOnChangeInboxNote = debounce(

type MapInboxFn = (data: Schema["Inbox"]["type"]) => Inbox;

export const mapInbox: MapInboxFn = ({
const mapInbox: MapInboxFn = ({
id,
note,
createdAt,
Expand Down
4 changes: 1 addition & 3 deletions components/inbox/inboxWorkflow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
User,
X,
} from "lucide-react";
import { Button } from "../ui/button";

export type WorkflowStatus =
| "new"
Expand All @@ -22,7 +21,6 @@ export type WorkflowStatus =
| "confirmDeletion"
| "done";
export type WorkflowStepIcon = typeof Stars;
export type WorkflowStepButton = typeof Button;

export type WorkflowStatusWithActions =
| "addToProject"
Expand All @@ -37,7 +35,7 @@ export const statusWithAction = [
"done",
] as const;

export type WorkflowStart = {
type WorkflowStart = {
status: WorkflowStatus;
statusName: string;
question: string;
Expand Down
4 changes: 2 additions & 2 deletions components/layouts/MainLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ const MainLayoutInner: FC<MainLayoutProps> = ({
...categoryTitleProps
}) => {
const { toggleMenu } = useNavMenuContext();
const { context: storedContext, setContext } = useContextContext();
const [isOpen, setIsOpen] = useState(false);
const { context: storedContext, setContext } = useContextContext();
const context = propsContext || storedContext || "family";
const router = useRouter();

Expand All @@ -49,7 +49,6 @@ const MainLayoutInner: FC<MainLayoutProps> = ({
<div className="flex flex-col items-center justify-center w-full">
<Header context={context} />
<NavigationMenu />
<CreateInboxItemDialog open={isOpen} onOpenChange={setIsOpen} />
<main className="w-full xl:w-[64rem]">
<div className="flex flex-col pb-0">
<div className="px-2 md:px-8 lg:px-16 mb-4 md:mb-8">
Expand All @@ -60,6 +59,7 @@ const MainLayoutInner: FC<MainLayoutProps> = ({
</div>
</div>
<Toaster />
<CreateInboxItemDialog open={isOpen} onOpenChange={setIsOpen} />
</main>
</div>
</div>
Expand Down
28 changes: 0 additions & 28 deletions components/ui-elements/list-items/list-item.tsx

This file was deleted.

35 changes: 0 additions & 35 deletions components/ui-elements/tokens/account-name.tsx

This file was deleted.

43 changes: 0 additions & 43 deletions components/ui-elements/tokens/project-name.tsx

This file was deleted.

0 comments on commit 515b73f

Please sign in to comment.