Skip to content

Commit

Permalink
Merge pull request #4 from lambda-vaatu/main
Browse files Browse the repository at this point in the history
refactor: change folder structure
  • Loading branch information
Juanies authored Jun 27, 2024
2 parents 3e11225 + 726c101 commit 18fc338
Show file tree
Hide file tree
Showing 33 changed files with 24 additions and 25 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/app/api/newjob/route.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { sql } from '@vercel/postgres';
import { NextRequest, NextResponse } from 'next/server';
import { auth } from '@/auth/auth';
import { getUserID, getUserName } from '@/app/utils/userInfo';
import { getUserID, getUserName } from '@/utils/userInfo';

export async function POST(request: NextRequest) {
try {
Expand Down
6 changes: 3 additions & 3 deletions src/app/empleos/page.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"use client"
import { useState } from "react";
import NewJobForm from "../components/NewJobForm";
import SearchBar from "../components/SearchBar";
import SectionCardsJob from "../components/SectionCardsJob";
import NewJobForm from "@/components/NewJobForm";
import SearchBar from "@/components/SearchBar";
import SectionCardsJob from "@/components/SectionCardsJob";

export default function Jobs(){

Expand Down
2 changes: 1 addition & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Metadata } from "next";
import { Inter } from "next/font/google";
import Header from "./components/Header";
import Header from "@/components/Header";
import "@/app/global.css"
const inter = Inter({ subsets: ["latin"] });

Expand Down
4 changes: 2 additions & 2 deletions src/app/login/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Computer from "../../../images/Computer";
import LoginForm from "../components/LoginForm";
import Computer from "@/images/Computer";
import LoginForm from "@/components/LoginForm";

export default function Login(){
return(
Expand Down
14 changes: 7 additions & 7 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import Image from "next/image";
import Arrow from "../../images/Arrow";
import Economy from '../../images/Economy';
import Reputation from '../../images/Reputation';
import Proton from "../../images/tecno.png";
import FeaturesCards from "./components/FeaturesCards";
import HyperLink from "./components/HyperLink";
import SectionCardsJob from "./components/SectionCardsJob";
import Arrow from "@/images/Arrow";
import Economy from '@/images/Economy';
import Reputation from '@/images/Reputation';
import Proton from "@/images/tecno.png";
import FeaturesCards from "@/components/FeaturesCards";
import HyperLink from "@/components/HyperLink";
import SectionCardsJob from "@/components/SectionCardsJob";



Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Plus from "../../../images/Plus"
import Plus from "@/images/Plus"
export default function AddJobButton(){
return(
<div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Tools from "../../../images/Tools";
import Search from "../../../images/Search";
import HeartBeat from "../../../images/HeartBeat";
import Tools from "@/images/Tools";
import Search from "@/images/Search";
import HeartBeat from "@/images/HeartBeat";

export default function FeaturesCards(){
const featureObje = {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client"
import Logo from "./Logo";
import Menu from "@/app/components/Menu"
import Menu from "@/components/Menu"
import { auth } from '@/auth/auth';
import { useState, useEffect } from "react";

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { doSocialLogin } from "@/app/utils/action";
import { doSocialLogin } from "@/utils/action";

const LoginForm = () => {
return (
Expand Down
1 change: 0 additions & 1 deletion src/app/components/Logo.tsx → src/components/Logo.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "../../../public/logobg.svg"
export default function Logo() {
return (
<svg width="56" height="56" viewBox="0 0 56 56" fill="none" xmlns="http://www.w3.org/2000/svg" xlinkHref="http://www.w3.org/1999/xlink">
Expand Down
4 changes: 2 additions & 2 deletions src/app/components/Menu.tsx → src/components/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import { useState, useEffect } from "react";
import { usePathname } from "next/navigation";
import Image from "next/image";
import { getUserImage, getUsserSesion } from "../utils/userInfo";
import { doLogout } from "../utils/action";
import { getUserImage, getUsserSesion } from "@/utils/userInfo";
import { doLogout } from "@/utils/action";

export default function Menu() {
const pathName = usePathname();
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// components/SearchBar.tsx

import React from 'react';
import SearchInput from '../../../images/SearchInput';
import Plus from '../../../images/Plus';
import SearchInput from '@/images/SearchInput';
import Plus from '@/images/Plus';

interface SearchBarProps {
showPlusIcon: boolean;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.

0 comments on commit 18fc338

Please sign in to comment.