Skip to content

Commit a9d3132

Browse files
committed
fix: correcting the import statements for react-bootstrap to the preferred
1 parent f0a5393 commit a9d3132

File tree

8 files changed

+16
-8
lines changed

8 files changed

+16
-8
lines changed

src/api/useAuth.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { auth } from "./config.js";
33
import { GoogleAuthProvider, signInWithPopup } from "firebase/auth";
44
import { addUserToDatabase, User } from "./firebase";
55
import toast from "react-hot-toast";
6-
import { Button } from "react-bootstrap";
6+
import Button from "react-bootstrap/Button";
77

88
/**
99
* A button that signs the user in using Google OAuth. When clicked,

src/components/CreateList.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ import { ChangeEvent, FormEvent, useState } from "react";
22
import { createList, User } from "../api";
33
import { useNavigate } from "react-router-dom";
44
import toast from "react-hot-toast";
5-
import { Button, Form, InputGroup } from "react-bootstrap";
5+
import Button from "react-bootstrap/Button";
6+
import Form from "react-bootstrap/Form";
7+
import InputGroup from "react-bootstrap/InputGroup";
68

79
interface Props {
810
user: User;

src/components/FilterListInput.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import { ChangeEvent, FormEvent } from "react";
2-
import { Button, Form, InputGroup } from "react-bootstrap";
2+
import Button from "react-bootstrap/Button";
3+
import Form from "react-bootstrap/Form";
4+
import InputGroup from "react-bootstrap/InputGroup";
35

46
interface FilterListProps {
57
searchTerm: string;

src/components/ListItem.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import { updateItem, deleteItem, ListItem } from "../api";
33
import { useState } from "react";
44
import toast from "react-hot-toast";
55
import { moreThan24HoursPassed, getDaysBetweenDates } from "../utils";
6-
import { Button, Form } from "react-bootstrap";
6+
import Button from "react-bootstrap/Button";
7+
import Form from "react-bootstrap/Form";
78

89
interface Props {
910
item: ListItem;

src/components/SingleList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import "./SingleList.css";
22
import * as api from "../api/firebase";
3-
import { Button } from "react-bootstrap";
3+
import Button from "react-bootstrap/Button";
44

55
interface Props extends Pick<api.List, "name" | "path"> {
66
setListPath: (path: string) => void;

src/components/forms/AddItemForm.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import { ChangeEvent, FormEvent, useState } from "react";
22
import { addItem, ListItem } from "../../api";
33
import { validateItemName } from "../../utils";
44
import toast from "react-hot-toast";
5-
import { Button, Form } from "react-bootstrap";
5+
import Button from "react-bootstrap/Button";
6+
import Form from "react-bootstrap/Form";
67

78
import { useNavigate } from "react-router-dom";
89

src/components/forms/ShareListForm.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import { ChangeEvent, FormEvent, useState } from "react";
22
import { shareList } from "../../api";
33
import { getUser } from "../ProtectedRoute";
4-
import { Button, Form, InputGroup } from "react-bootstrap";
4+
import Button from "react-bootstrap/Button";
5+
import Form from "react-bootstrap/Form";
6+
import { InputGroup } from "react-bootstrap";
57

68
import toast from "react-hot-toast";
79

src/views/authenticated/List.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { ListItemCheckBox } from "../../components/ListItem";
33
import { FilterListInput } from "../../components/FilterListInput";
44
import { ListItem, comparePurchaseUrgency } from "../../api";
55
import { useNavigate } from "react-router-dom";
6-
import { Button } from "react-bootstrap";
6+
import Button from "react-bootstrap/Button";
77

88
interface Props {
99
data: ListItem[];

0 commit comments

Comments
 (0)