Skip to content

Commit

Permalink
frontend: cleanup components folder
Browse files Browse the repository at this point in the history
  • Loading branch information
ardhptr21 committed Nov 17, 2021
1 parent 15b22e2 commit ca6e0b0
Show file tree
Hide file tree
Showing 31 changed files with 40 additions and 40 deletions.
2 changes: 1 addition & 1 deletion frontend/src/App.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { BrowserRouter as Router, Switch, Route } from "react-router-dom";
import { ToastContainer } from "react-toastify";
import Navbar from "./components/Navbar";
import Navbar from "./components/navigations/Navbar";
import routes from "./routes";
import "react-toastify/dist/ReactToastify.min.css";

Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/SkillItemDashboard.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import ButtonEdit from "../components/ButtonEdit";
import ButtonDelete from "../components/ButtonDelete";
import ButtonEdit from "../components/buttons/ButtonEdit";
import ButtonDelete from "../components/buttons/ButtonDelete";

const SkillItemDashboard = ({ name, skillId, clickEdit, clickDelete }) => {
return (
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.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useEffect } from "react";
import LoadingBtnWhite from "./loading/LoadingBtnWhite";
import LoadingBtnWhite from "../loading/LoadingBtnWhite";

const ButtonForm = ({ children, loading = false, ...props }) => {
useEffect(() => {
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.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import getRouteName from "../utils/getRouteName";
import getRouteName from "../../utils/getRouteName";
import { Link } from "react-router-dom";

const LinkDropdown = ({ route, text, children, params }) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Link } from "react-router-dom";
import getActiveURL from "../utils/getActiveURL";
import getRoutesName from "../utils/getRouteName";
import getActiveURL from "../../utils/getActiveURL";
import getRoutesName from "../../utils/getRouteName";

const LinkSidebar = ({ children, text, route, params, click }) => {
return (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Link } from "react-router-dom";
import Logo from "../assets/image/Logo.svg";
import ButtonFill from "./ButtonFill";
import getRoutesName from "../utils/getRouteName";
import Logo from "../../assets/image/Logo.svg";
import ButtonFill from "../buttons/ButtonFill";
import getRoutesName from "../../utils/getRouteName";
import { useState } from "react";

const Navbar = () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { useState } from "react";
import { Link, Redirect } from "react-router-dom";
import LogoWhite from "../assets/image/LogoWhite.svg";
import useAxios from "../hooks/useAxios";
import getUserInfo from "../utils/getUserInfo";
import LinkSidebar from "./LinkSidebar";
import LogoWhite from "../../assets/image/LogoWhite.svg";
import useAxios from "../../hooks/useAxios";
import getUserInfo from "../../utils/getUserInfo";
import LinkSidebar from "../links/LinkSidebar";
import ToggleSidebar from "./ToggleSidebar";

const Sidebar = () => {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import ButtonDelete from "./ButtonDelete";
import ButtonEdit from "./ButtonEdit";
import ButtonDelete from "../buttons/ButtonDelete";
import ButtonEdit from "../buttons/ButtonEdit";
import Td from "./Td";
import Tr from "./Tr";

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions frontend/src/pages/Home.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import ButtonOutline from "../components/ButtonOutline";
import ButtonOutline from "../components/buttons/ButtonOutline";
import { Link } from "react-router-dom";
import getRouteName from "../utils/getRouteName";
import getUserInfo from "../utils/getUserInfo";
import FeatureCard from "../components/FeatureCard";
import FeatureCard from "../components/cards/FeatureCard";
import LogoCreatedWhite from "../assets/image/LogoCreatedWhite.svg";

const Home = () => {
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/pages/Login.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Link, Redirect, useHistory } from "react-router-dom";
import ButtonForm from "../components/ButtonForm";
import Input from "../components/Input";
import ButtonForm from "../components/buttons/ButtonForm";
import Input from "../components/forms/Input";
import getRouteName from "../utils/getRouteName";
import Logo from "../assets/image/Logo.svg";
import useAxios from "../hooks/useAxios";
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/Portfolio.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import PortfolioSection from "../components/PortfolioSection";
import SkillItem from "../components/SkillItem";
import CardProject from "../components/CardProject";
import CardProject from "../components/cards/CardProject";
import LogoWhite from "../assets/image/LogoWhite.svg";
import SquareLogo from "../assets/image/SquareLogo.svg";
import { Link, Redirect } from "react-router-dom";
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/pages/Register.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Link, Redirect } from "react-router-dom";
import ButtonForm from "../components/ButtonForm";
import Input from "../components/Input";
import ButtonForm from "../components/buttons/ButtonForm";
import Input from "../components/forms/Input";
import getRouteName from "../utils/getRouteName";
import Logo from "../assets/image/Logo.svg";
import { useState } from "react";
Expand Down
16 changes: 8 additions & 8 deletions frontend/src/pages/dashboard/Projects.jsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { useEffect, useState } from "react";
import AlertDanger from "../../components/AlertDanger";
import ButtonAdd from "../../components/ButtonAdd";
import ButtonCancel from "../../components/ButtonCancel";
import ButtonForm from "../../components/ButtonForm";
import AlertDanger from "../../components/alerts/AlertDanger";
import ButtonAdd from "../../components/buttons/ButtonAdd";
import ButtonCancel from "../../components/buttons/ButtonCancel";
import ButtonForm from "../../components/buttons/ButtonForm";
import DashboardTitle from "../../components/DashboardTitle";
import Input from "../../components/Input";
import RowTableProject from "../../components/RowTableProject";
import Sidebar from "../../components/Sidebar";
import Th from "../../components/Th";
import Input from "../../components/forms/Input";
import RowTableProject from "../../components/tables/RowTableProject";
import Sidebar from "../../components/navigations/Sidebar";
import Th from "../../components/tables/Th";
import useAxios from "../../hooks/useAxios";
import getUserInfo from "../../utils/getUserInfo";
import { toast } from "react-toastify";
Expand Down
8 changes: 4 additions & 4 deletions frontend/src/pages/dashboard/Skills.jsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import Sidebar from "../../components/Sidebar";
import Sidebar from "../../components/navigations/Sidebar";
import SkillItemDashboard from "../../components/SkillItemDashboard";
import ButtonAdd from "../../components/ButtonAdd";
import ButtonAdd from "../../components/buttons/ButtonAdd";
import DashboardTitle from "../../components/DashboardTitle";
import { useEffect, useState } from "react";
import AlertDanger from "../../components/AlertDanger";
import AlertDanger from "../../components/alerts/AlertDanger";
import useAxios from "../../hooks/useAxios";
import getUserInfo from "../../utils/getUserInfo";
import ButtonCancel from "../../components/ButtonCancel";
import ButtonCancel from "../../components/buttons/ButtonCancel";
import { toast } from "react-toastify";
import LoadingDark from "../../components/loading/LoadingDark";

Expand Down
10 changes: 5 additions & 5 deletions frontend/src/pages/dashboard/User.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { useEffect, useState } from "react";
import ButtonForm from "../../components/ButtonForm";
import Input from "../../components/Input";
import InputFile from "../../components/InputFile";
import Sidebar from "../../components/Sidebar";
import Textarea from "../../components/Textarea";
import ButtonForm from "../../components/buttons/ButtonForm";
import Input from "../../components/forms/Input";
import InputFile from "../../components/forms/InputFile";
import Sidebar from "../../components/navigations/Sidebar";
import Textarea from "../../components/forms/Textarea";
import useAxios from "../../hooks/useAxios";
import axios from "axios";
import { toast } from "react-toastify";
Expand Down

0 comments on commit ca6e0b0

Please sign in to comment.