Skip to content

Commit

Permalink
remove unnecessary import and move to app level
Browse files Browse the repository at this point in the history
  • Loading branch information
warrenchan13 committed Oct 6, 2024
1 parent 3636eea commit 149fa17
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { useAuth, useShoppingListData, useShoppingLists } from './api';

import { useStateWithStorage } from './utils';
import { ToastContainer } from 'react-toastify';
import 'react-toastify/dist/ReactToastify.css';

export function App() {
/**
Expand Down
1 change: 0 additions & 1 deletion src/components/AddItems.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { addItem } from '../api';
import TextInputElement from './TextInputElement';
import RadioInputElement from './RadioInputElement';
import { toast } from 'react-toastify';
import 'react-toastify/dist/ReactToastify.css';

const daysUntilPurchaseOptions = {
Soon: 7,
Expand Down
1 change: 0 additions & 1 deletion src/components/ListItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import './ListItem.css';
import { updateItem, deleteItem } from '../api';
import { calculateDateNextPurchased, ONE_DAY_IN_MILLISECONDS } from '../utils';
import { toast } from 'react-toastify';
import 'react-toastify/dist/ReactToastify.css';

const currentDate = new Date();

Expand Down
1 change: 0 additions & 1 deletion src/components/ShareList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { shareList, useAuth } from '../api';
import { useStateWithStorage } from '../utils';
import TextInputElement from './TextInputElement';
import { toast } from 'react-toastify';
import 'react-toastify/dist/ReactToastify.css';

export function ShareList() {
const [listPath] = useStateWithStorage('tcl-shopping-list-path', null);
Expand Down
1 change: 0 additions & 1 deletion src/hooks/useEnsureListPath.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { useEffect, useState } from 'react';
import { useNavigate } from 'react-router-dom';
import { toast } from 'react-toastify';
import 'react-toastify/dist/ReactToastify.css';

/*
* This custom hook ensures that a user has a list path in localStorage.
Expand Down
1 change: 0 additions & 1 deletion src/views/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { useNavigate } from 'react-router-dom';
import { createList } from '../api';
import TextInputElement from '../components/TextInputElement';
import { toast } from 'react-toastify';
import 'react-toastify/dist/ReactToastify.css';

export function Home({ data, setListPath, userId, userEmail }) {
const navigate = useNavigate();
Expand Down

0 comments on commit 149fa17

Please sign in to comment.