Rename Button ui component files
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import styles from "./Filter.module.css";
|
||||
import Button from "../ui/button/button";
|
||||
import Button from "../ui/Button/button";
|
||||
import React from "react";
|
||||
|
||||
type FiltersType = {
|
||||
|
||||
@@ -2,7 +2,7 @@ import styles from "./Footer.module.css"
|
||||
import {Link} from "react-router";
|
||||
import {useState} from "react";
|
||||
import Modal from "../ui/modal/modal.tsx";
|
||||
import Button from "../ui/button/button.tsx";
|
||||
import Button from "../ui/Button/button.tsx";
|
||||
import scrollToTop from "../../utils/scrollToTop.js";
|
||||
|
||||
export default function Footer(){
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import styles from "./createEventBtn.module.css"
|
||||
import { useState, useContext } from "react";
|
||||
import Modal from "../../../ui/modal/modal.tsx";
|
||||
import Button from "../../../ui/button/button.tsx";
|
||||
import Button from "../../../ui/Button/button.tsx";
|
||||
import TextInput from "../../../ui/input/input.tsx";
|
||||
import { EventContext } from "../../../../contexts/events/EventContext.js";
|
||||
import {AuthContext} from "../../../../contexts/auth/AuthContext.ts";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import styles from "../ToolBar.module.css"
|
||||
import Button from "../../ui/button/button";
|
||||
import Button from "../../ui/Button/button";
|
||||
import { useState } from "react";
|
||||
import Filter from "../../Filter/Filter";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import styles from "../ToolBar.module.css"
|
||||
import Button from "../../ui/button/button";
|
||||
import Button from "../../ui/Button/button";
|
||||
import { useEffect, useState } from "react";
|
||||
import SearchBar from "../../SearchBar/SearchBar";
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ export default Modal;*/
|
||||
|
||||
import { createPortal } from "react-dom";
|
||||
import styles from "./modal.module.css";
|
||||
import Button from "../button/button";
|
||||
import Button from "../Button/button";
|
||||
import { ReactNode, MouseEvent } from "react";
|
||||
|
||||
interface ModalProps {
|
||||
|
||||
@@ -31,7 +31,7 @@ export default function ThemeSwitcher() {
|
||||
</Button>
|
||||
}*/
|
||||
|
||||
import Button from "../button/button";
|
||||
import Button from "../Button/button";
|
||||
import { useState, useEffect } from "react";
|
||||
import styles from "./ThemeSwitcher.module.css";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React, {useState, useEffect, useContext} from "react";
|
||||
import Button from "../../../../components/ui/button/button.tsx";
|
||||
import Button from "../../../../components/ui/Button/button.tsx";
|
||||
import styles from "./PendingMembers.module.css";
|
||||
import Modal from "../../../../components/ui/modal/modal.tsx";
|
||||
import validateUser from "../../../../utils/users/validateUser.js";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import React, { useState } from "react"
|
||||
import styles from "./registerMember.module.css"
|
||||
import TextInput from "../../../../components/ui/input/input"
|
||||
import Button from "../../../../components/ui/button/button";
|
||||
import Button from "../../../../components/ui/Button/button";
|
||||
import Response from "../../../../interfaces/response.interface";
|
||||
import ResponseData from "./responseData.inteface";
|
||||
import adminCreateUser from "../../../../utils/users/adminCreateUser";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import styles from "./Event.module.css";
|
||||
import { useState, useEffect } from "react";
|
||||
import { useNavigate } from "react-router";
|
||||
import Button from "/src/components/ui/button/button"
|
||||
import Button from "/src/components/ui/Button/button"
|
||||
|
||||
function Event({event}){
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ import {useState, useMemo, useEffect, useContext} from "react";
|
||||
import styles from "./calendar.module.css";
|
||||
import {formatDateLetterJS} from "../../../../utils/date/formatDateLetter.js";
|
||||
import {EventContext} from "../../../../contexts/events/EventContext.js";
|
||||
import Button from "../../../../components/ui/button/button.jsx";
|
||||
import Button from "../../../../components/ui/Button/button.jsx";
|
||||
import {AuthContext} from "../../../../contexts/auth/AuthContext.ts";
|
||||
|
||||
function Calendar() {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { useState, useContext, FormEvent } from "react";
|
||||
import styles from "./loginForm.module.css";
|
||||
import Button from "../../../../components/ui/button/button";
|
||||
import Button from "../../../../components/ui/Button/button";
|
||||
import Input from "../../../../components/ui/input/input";
|
||||
import Modal from "../../../../components/ui/modal/modal";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import {useContext, useState, ChangeEvent} from "react";
|
||||
import Modal from "../../../../components/ui/modal/modal";
|
||||
import Button from "../../../../components/ui/button/button";
|
||||
import Button from "../../../../components/ui/Button/button";
|
||||
import styles from "./SettingsModal.module.css";
|
||||
import ThemeSwitcher from "../../../../components/ui/themeSwitcher/ThemeSwitcher.jsx";
|
||||
import {AuthContext} from "../../../../contexts/auth/AuthContext";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Button from "../../../../components/ui/button/button.tsx";
|
||||
import Button from "../../../../components/ui/Button/button.tsx";
|
||||
import Modal from "../../../../components/ui/modal/modal.tsx";
|
||||
import {useContext, useState} from "react";
|
||||
import styles from "./manageMember.module.css"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Button from "../../../../../components/ui/button/button.tsx";
|
||||
import Button from "../../../../../components/ui/Button/button.tsx";
|
||||
import Modal from "../../../../../components/ui/modal/modal.tsx";
|
||||
import { useState } from "react";
|
||||
import deactivateUser from "../../../../../utils/users/deactivateUser.js"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import styles from "../manageMember.module.css";
|
||||
import Button from "../../../../../components/ui/button/button.tsx";
|
||||
import Button from "../../../../../components/ui/Button/button.tsx";
|
||||
import modifyRole from "../../../../../utils/users/modifyRole.js";
|
||||
import { useState, useEffect } from "react";
|
||||
import getRoles from "../../../../../utils/getRoles.js";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import styles from "./RegisterPage.module.css";
|
||||
import Background from "../../components/Background/background.jsx";
|
||||
import Input from "../../components/ui/input/input.tsx";
|
||||
import Button from "../../components/ui/button/button.tsx";
|
||||
import Button from "../../components/ui/Button/button.tsx";
|
||||
import {useContext, useEffect, useState} from "react";
|
||||
import register from "../../utils/register.js";
|
||||
import { useNavigate } from "react-router";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import styles from "./VolunteersCard.module.css";
|
||||
import { useNavigate } from "react-router";
|
||||
import Button from "../../../../components/ui/button/button";
|
||||
import Button from "../../../../components/ui/Button/button";
|
||||
import User from "../../interfaces/user.interface"
|
||||
|
||||
interface VolunteersCardProps {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import styles from "./eventTask.module.css";
|
||||
import { formatDateLetter } from "../../../../utils/date/formatDateLetter.js";
|
||||
import Button from "../../../../components/ui/button/button.tsx";
|
||||
import Button from "../../../../components/ui/Button/button.tsx";
|
||||
import assign from "../../../../utils/tasks/assign.js";
|
||||
import unAssign from "../../../../utils/tasks/unAssign.js";
|
||||
import { useContext, useEffect, useState } from "react";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import styles from "../../eventDetail.module.css";
|
||||
import Button from "../../../../components/ui/button/button.tsx";
|
||||
import Button from "../../../../components/ui/Button/button.tsx";
|
||||
import {useContext, useState} from "react";
|
||||
import TextInput from "../../../../components/ui/input/input.tsx";
|
||||
import Modal from "../../../../components/ui/modal/modal.tsx";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import styles from "../../eventDetail.module.css";
|
||||
import Button from "../../../../components/ui/button/button.tsx";
|
||||
import Button from "../../../../components/ui/Button/button.tsx";
|
||||
import Modal from "../../../../components/ui/modal/modal.tsx";
|
||||
import { useContext, useState } from "react";
|
||||
import { EventDetailContext } from "../../../../contexts/eventDetail/eventDetail.js";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useContext } from "react";
|
||||
import { AuthContext } from "../../../../contexts/auth/AuthContext.js";
|
||||
import { EventDetailContext } from "../../../../contexts/eventDetail/eventDetail.js";
|
||||
import Button from "../../../../components/ui/button/button.tsx";
|
||||
import Button from "../../../../components/ui/Button/button.tsx";
|
||||
import { useState } from "react";
|
||||
import Modal from "../../../../components/ui/modal/modal.tsx";
|
||||
import styles from "../../eventDetail.module.css";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import styles from "./validationErrorPage.module.css"
|
||||
import Background from "../../components/Background/background.jsx";
|
||||
import Button from "../../components/ui/button/button.tsx";
|
||||
import Button from "../../components/ui/Button/button.tsx";
|
||||
import { useContext } from "react";
|
||||
import { AuthContext } from "../../contexts/auth/AuthContext.js";
|
||||
import { Navigate, useNavigate, Link } from "react-router";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { fn } from 'storybook/test';
|
||||
|
||||
import Button from '../components/ui/button/button.tsx';
|
||||
import Button from '../components/ui/Button/button.tsx';
|
||||
|
||||
|
||||
export default {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import Modal from "../components/ui/modal/modal.tsx";
|
||||
import Button from "../components/ui/button/button.tsx";
|
||||
import Button from "../components/ui/Button/button.tsx";
|
||||
import { useState } from "react";
|
||||
|
||||
export default {
|
||||
|
||||
Reference in New Issue
Block a user