Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
tp47 committed Sep 23, 2023
1 parent 92e47f1 commit 7bb8790
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion src/app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function app() {
.querySelector(".modal-overlay")
?.addEventListener("click", toggleModal);

document.body.append(new NavigationList().getContent() ?? "");
document.body.append(new NavigationList({}).getContent() ?? "");
}
navigate(window.location.pathname);
});
Expand Down
2 changes: 1 addition & 1 deletion src/shared/ui/button/button.types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
interface ButtonProps {
label: string;
label?: string;
onClick?: () => void;
}

Expand Down
8 changes: 4 additions & 4 deletions src/shared/ui/chatCard/chatCard.types.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
interface ChatCardProps {
title: string;
message: string;
date: string;
userImage: string;
title?: string;
message?: string;
date?: string;
userImage?: string;
newMessages?: string;
}

Expand Down
2 changes: 1 addition & 1 deletion src/shared/ui/errorLine/errorLine.types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
interface ErorrLineProps {
error: string;
error?: string;
}

export type { ErorrLineProps };
4 changes: 2 additions & 2 deletions src/shared/ui/iconButton/iconButton.types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
interface IconButtonProps {
src: string;
type: string;
src?: string;
type?: string;
onClick?: () => void;
customClass?: string;
}
Expand Down
2 changes: 1 addition & 1 deletion src/shared/ui/infoList/infoList.types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
interface InfoListProps {
items: [];
items?: [];
}

export type { InfoListProps };
4 changes: 2 additions & 2 deletions src/shared/ui/input/input.types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
interface InputProps {
label: string;
name: string;
label?: string;
name?: string;
type?: string;
placeholder?: string;
onBlur?: () => void;
Expand Down
4 changes: 2 additions & 2 deletions src/shared/ui/inputField/inputField.types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
interface InputFieldProps {
label: string;
name: string;
label?: string;
name?: string;
value?: string;
type?: string;
customClass?: string;
Expand Down
4 changes: 2 additions & 2 deletions src/shared/ui/listItem/listItem.types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
interface ListItemProps {
title: string;
type: "info" | "edit";
title?: string;
type?: "info" | "edit";
inputName?: string;
inputType?: string;
value?: string;
Expand Down
2 changes: 1 addition & 1 deletion src/shared/ui/sideButton/sideButton.types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
interface SideButtonProps {
to: string;
to?: string;
}

export type { SideButtonProps };
2 changes: 1 addition & 1 deletion src/shared/ui/userImage/userImage.types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
interface UserImageProps {
src: string;
src?: string;
isSmall?: boolean;
}

Expand Down
2 changes: 1 addition & 1 deletion src/widgets/chat/ui/chatList/chatList.types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
interface ChatListProps {
chats: [];
chats?: [];
}

export type { ChatListProps };

0 comments on commit 7bb8790

Please sign in to comment.