Skip to content

Commit

Permalink
name changes (#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
codekansas authored Aug 3, 2024
1 parent 9af376e commit dab9ec7
Show file tree
Hide file tree
Showing 20 changed files with 34 additions and 34 deletions.
4 changes: 2 additions & 2 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import Container from "components/Container";
import Footer from "components/footer/Footer";
import Navbar from "components/nav/Navbar";
import NotFoundRedirect from "components/NotFoundRedirect";
import { AlertQueue, AlertQueueProvider } from "hooks/alerts";
import { AuthenticationProvider } from "hooks/auth";
import { AlertQueue, AlertQueueProvider } from "hooks/useAlertQueue";
import { AuthenticationProvider } from "hooks/useAuth";
import { DarkModeProvider } from "hooks/useDarkMode";
import About from "pages/About";
import APIKeys from "pages/APIKeys";
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/auth/AuthBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import BackButton from "components/ui/Button/BackButton";
import { Card, CardContent, CardFooter, CardHeader } from "components/ui/Card";
import Header from "components/ui/Header";
import Spinner from "components/ui/Spinner";
import { useAlertQueue } from "hooks/alerts";
import { useAuthentication } from "hooks/auth";
import { useAlertQueue } from "hooks/useAlertQueue";
import { useAuthentication } from "hooks/useAuth";
import { useEffect, useState } from "react";
import AuthProvider from "./AuthProvider";
import LoginForm from "./LoginForm";
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/auth/RequireAuthentication.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import LogInModal from "components/auth/AuthenticationModal";
import { useAuthentication } from "hooks/auth";
import { useAuthentication } from "hooks/useAuth";
import React from "react";

interface Props {
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/listing/EditListingModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import {
import ErrorMessage from "components/ui/ErrorMessage";
import { Input, TextArea } from "components/ui/Input/Input";
import { paths } from "gen/api";
import { useAlertQueue } from "hooks/alerts";
import { useAuthentication } from "hooks/auth";
import { useAlertQueue } from "hooks/useAlertQueue";
import { useAuthentication } from "hooks/useAuth";
import { useEffect, useState } from "react";
import { SubmitHandler, useForm } from "react-hook-form";
import { NewListingSchema, NewListingType } from "types";
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/listing/ListingArtifacts.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Carousel from "components/ui/Carousel";
import { components } from "gen/api";
import { useAlertQueue } from "hooks/alerts";
import { useAuthentication } from "hooks/auth";
import { useAlertQueue } from "hooks/useAlertQueue";
import { useAuthentication } from "hooks/useAuth";
import { useEffect, useState } from "react";

interface Props {
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/listing/ListingDeleteButton.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Button } from "components/ui/Button/Button";
import { useAlertQueue } from "hooks/alerts";
import { useAuthentication } from "hooks/auth";
import { useAlertQueue } from "hooks/useAlertQueue";
import { useAuthentication } from "hooks/useAuth";
import { useState } from "react";
import { FaExclamation } from "react-icons/fa";
import { useNavigate } from "react-router-dom";
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/listing/ListingDescription.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Button } from "components/ui/Button/Button";
import { TextArea } from "components/ui/Input/Input";
import Spinner from "components/ui/Spinner";
import { useAlertQueue } from "hooks/alerts";
import { useAuthentication } from "hooks/auth";
import { useAlertQueue } from "hooks/useAlertQueue";
import { useAuthentication } from "hooks/useAuth";
import { useState } from "react";
import { FaFile, FaPen } from "react-icons/fa";
import Markdown from "react-markdown";
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/listing/ListingHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Button } from "components/ui/Button/Button";
import { Input } from "components/ui/Input/Input";
import Spinner from "components/ui/Spinner";
import { useAlertQueue } from "hooks/alerts";
import { useAuthentication } from "hooks/auth";
import { useAlertQueue } from "hooks/useAlertQueue";
import { useAuthentication } from "hooks/useAuth";
import { useState } from "react";
import { FaFile, FaPen, FaTimes } from "react-icons/fa";
import { useNavigate } from "react-router-dom";
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/listings/ListingGrid.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Spinner from "components/ui/Spinner";
import { paths } from "gen/api";
import { useAlertQueue } from "hooks/alerts";
import { useAuthentication } from "hooks/auth";
import { useAlertQueue } from "hooks/useAlertQueue";
import { useAuthentication } from "hooks/useAuth";
import { useEffect, useState } from "react";
import ListingGridCard from "./ListingGridCard";

Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/nav/Boop.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import boop from "hooks/boop";
import useBoop from "hooks/useBoop";
import React from "react";
import { animated } from "react-spring";

Expand All @@ -19,7 +19,7 @@ const Boop: React.FC<BoopProps> = ({
timing = 3000,
children,
}) => {
const [style, trigger] = boop({ x, y, rotation, scale, timing });
const [style, trigger] = useBoop({ x, y, rotation, scale, timing });

return (
<animated.span onMouseEnter={trigger} style={style}>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/nav/Sidebar.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import clsx from "clsx";
import { useAuthentication } from "hooks/auth";
import { useAuthentication } from "hooks/useAuth";
import {
FaBookOpen,
FaDoorClosed,
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ interface BoopProps {
springConfig?: SpringConfig;
}

function boop({
function useBoop({
x = 100,
y = 100,
rotation = 0,
Expand Down Expand Up @@ -57,4 +57,4 @@ function boop({
return [appliedStyle, trigger] as const;
}

export default boop;
export default useBoop;
4 changes: 2 additions & 2 deletions frontend/src/hooks/useGetListing.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { paths } from "gen/api";
import { useAlertQueue } from "hooks/useAlertQueue";
import { useAuthentication } from "hooks/useAuth";
import { useEffect, useState } from "react";
import { useAlertQueue } from "./alerts";
import { useAuthentication } from "./auth";

type ListingResponse =
paths["/listings/{id}"]["get"]["responses"][200]["content"]["application/json"];
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/hooks/useGetUserListing.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useAlertQueue } from "hooks/useAlertQueue";
import { useAuthentication } from "hooks/useAuth";
import { useEffect, useState } from "react";
import { useAlertQueue } from "./alerts";
import { useAuthentication } from "./auth";

const useGetUserListing = ({
pageNumber,
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/pages/Browse.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { useDebounce } from "@uidotdev/usehooks";
import ListingGrid from "components/listings/ListingGrid";
import { Input } from "components/ui/Input/Input";
import { useAlertQueue } from "hooks/alerts";
import { useAuthentication } from "hooks/auth";
import { useAlertQueue } from "hooks/useAlertQueue";
import { useAuthentication } from "hooks/useAuth";
import { useEffect, useState } from "react";
import { FaTimes } from "react-icons/fa";
import { useNavigate, useSearchParams } from "react-router-dom";
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/pages/Create.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import { Card, CardContent, CardHeader } from "components/ui/Card";
import ErrorMessage from "components/ui/ErrorMessage";
import Header from "components/ui/Header";
import { Input, TextArea } from "components/ui/Input/Input";
import { useAlertQueue } from "hooks/alerts";
import { useAuthentication } from "hooks/auth";
import { useAlertQueue } from "hooks/useAlertQueue";
import { useAuthentication } from "hooks/useAuth";
import { useState } from "react";
import { useForm } from "react-hook-form";
import { useNavigate } from "react-router-dom";
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/pages/ListingDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import ListingFooter from "components/listing/ListingFooter";
import ListingHeader from "components/listing/ListingHeader";
import Spinner from "components/ui/Spinner";
import { paths } from "gen/api";
import { useAlertQueue } from "hooks/alerts";
import { useAuthentication } from "hooks/auth";
import { useAlertQueue } from "hooks/useAlertQueue";
import { useAuthentication } from "hooks/useAuth";
import { useEffect, useState } from "react";
import { useParams } from "react-router-dom";

Expand Down
4 changes: 2 additions & 2 deletions frontend/src/pages/Logout.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Card, CardContent, CardHeader } from "components/ui/Card";
import Header from "components/ui/Header";
import Spinner from "components/ui/Spinner";
import { useAlertQueue } from "hooks/alerts";
import { useAuthentication } from "hooks/auth";
import { useAlertQueue } from "hooks/useAlertQueue";
import { useAuthentication } from "hooks/useAuth";
import { useEffect } from "react";

const Logout = () => {
Expand Down

0 comments on commit dab9ec7

Please sign in to comment.