Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions src/components/Tabs/Tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function Tabs({ children }: StrictPropsWithChildren) {

const renderTabElement = (
elements: ReactElement[],
props: Array<React.ComponentProps<typeof Tab>>,
props: Array<React.ComponentProps<typeof Tab>>
) => {
if (elements.length === 1) {
return elements[0];
Expand All @@ -35,9 +35,7 @@ const renderTabElement = (
);
};

function List({
children,
}: StrictPropsWithChildren) {
function List({ children }: StrictPropsWithChildren) {
const validChildren = Children.toArray(children).filter((child) =>
isValidElement(child)
) as ReactElement[];
Expand All @@ -59,7 +57,7 @@ interface TabProps {
queryString?: string;
}

function Tab({ value, text, queryString}: TabProps) {
function Tab({ value, text, queryString }: TabProps) {
const pathname = usePathname();
const searchParams = useSearchParams();

Expand Down
2 changes: 1 addition & 1 deletion src/components/Tabs/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default as Tabs } from './Tabs';
export { default as tabs } from "./tabs";
2 changes: 1 addition & 1 deletion src/components/list/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default as List } from './List';
export { default as List } from "./list";
2 changes: 1 addition & 1 deletion src/components/navigation-bar/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default as NavigationBar } from './NavigationBar';
export { default as NavigationBar } from './navigation-bar';
1 change: 1 addition & 0 deletions src/components/snack-bar/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default as snackbar } from "./snack-bar";
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { useState } from "react";
import style from "./Snackbar.module.css";
import style from "./snackbar.module.css";
import cn from "classnames";

interface SnackBarProps {
text: string;
textClose: string;
}

export default function SnackBar({ text, textClose }: SnackBarProps) {
export default function Snackbar({ text, textClose }: SnackBarProps) {
const [close, setClose] = useState(false);
return close === false ? (
<div className={cn("body_2", style["snack-bar"])}>
Expand Down
1 change: 0 additions & 1 deletion src/components/snackbar/index.ts

This file was deleted.