gwcuva/gwc-website

View on GitHub

Showing 113 of 372 total issues

Function OneOnOneSchedule has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function OneOnOneSchedule() {
    const [oneOnOne, setOneOnOne] = useState([{'id': '', 'eventName': '', 'eventDetail': '', 'startTime': '', 'zoomLink': '', 'inPerson': ''}]);
    // const [dropdownOpen, setDropdownOpen] = useState(false);
  
    useEffect(() => {
Severity: Minor
Found in src/components/CareerFair2022/OneOnOneSchedule/OneOnOneSchedule.tsx - About 1 hr to fix

    Function About has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function About(props: Props) {
    
      const [aboutLists, setAboutLists] = useState([{'header': '', 'items': []}]);
      
      useEffect(() => {
    Severity: Minor
    Found in src/components/Main/About/About.tsx - About 1 hr to fix

      Function PrizeItem has 31 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function PrizeItem(props: Props): JSX.Element {
          const [dropdownOpen, setDropdownOpen] = useState(false);
      
          if(isMobile) {
              return (
      Severity: Minor
      Found in src/components/GirlsHooHack2022/Prizes/PrizeItem.tsx - About 1 hr to fix

        Function PrizeItem has 31 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function PrizeItem(props: Props): JSX.Element {
            const [dropdownOpen, setDropdownOpen] = useState(false);
        
            if(isMobile) {
                return (
        Severity: Minor
        Found in src/components/GirlsHooHack2023/Prizes/PrizeItem.tsx - About 1 hr to fix

          Function OneOnOneSchedule has 31 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function OneOnOneSchedule() {
              const [oneOnOne, setOneOnOne] = useState([{'id': '', 'eventName': '', 'eventDetail': '', 'startTime': '', 'zoomLink': '', 'inPerson': ''}]);
              // const [dropdownOpen, setDropdownOpen] = useState(false);
            
              useEffect(() => {
          Severity: Minor
          Found in src/components/CareerFair2024/OneOnOneSchedule/OneOnOneSchedule.tsx - About 1 hr to fix

            Function Location has 30 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function Location() {
              
              const [location, setLocation] = useState({'location': ''});
            
              useEffect(() => {
            Severity: Minor
            Found in src/components/GirlsHooHack2022/Location/Location.tsx - About 1 hr to fix

              Function fetchEvents has 30 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  const fetchEvents = async () => {
                    const { hackathonEvents } = await request(
                      process.env.REACT_APP_GRAPHCMS_URL ? process.env.REACT_APP_GRAPHCMS_URL : "",
                      `
                        { 
              Severity: Minor
              Found in src/components/GirlsHooHack2023/Schedule/Schedule.tsx - About 1 hr to fix

                Function Location has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function Location() {
                  
                  const [location, setLocation] = useState({'location': ''});
                
                  useEffect(() => {
                Severity: Minor
                Found in src/components/GirlsHooHack2023/Location/Location.tsx - About 1 hr to fix

                  Function fetchEvents has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      const fetchEvents = async () => {
                        const { hackathonEvents } = await request(
                          process.env.REACT_APP_GRAPHCMS_URL ? process.env.REACT_APP_GRAPHCMS_URL : "",
                          `
                            { 
                  Severity: Minor
                  Found in src/components/GirlsHooHack2022/Schedule/Schedule.tsx - About 1 hr to fix

                    Function Signup has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function Signup() {
                      const [registration, setRegistration] = useState({'registrationLink': ''});
                      useEffect(() => {
                        const fetchRegistration = async () => {
                          const { careerFairRegistration } = await request(
                    Severity: Minor
                    Found in src/components/CareerFair2024/Signup/Signup.tsx - About 1 hr to fix

                      Function Main has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function Main() {
                        return (
                          <>
                          <div>
                            <BrowserView>
                      Severity: Minor
                      Found in src/components/Main/Main.tsx - About 1 hr to fix

                        Function Signup has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        function Signup() {
                          const [registration, setRegistration] = useState({'registrationLink': ''});
                          useEffect(() => {
                            const fetchRegistration = async () => {
                              const { careerFairRegistration } = await request(
                        Severity: Minor
                        Found in src/components/CareerFair2023/Signup/Signup.tsx - About 1 hr to fix

                          Function Sessions has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function Sessions() {
                            const [sessions, setSessions] = useState([{'id': '', 'eventName': '', 'eventDetail': '', 'zoomLink': '', 'inPerson': ''}]);
                            // const [dropdownOpen, setDropdownOpen] = useState(false);
                          
                            useEffect(() => {
                          Severity: Minor
                          Found in src/components/CareerFair2023/Schedule/Sessions.tsx - About 1 hr to fix

                            Function fetchWorkshops has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                const fetchWorkshops = async () => {
                                  const { hackathonWorkshops } = await request(
                                    process.env.REACT_APP_GRAPHCMS_URL ? process.env.REACT_APP_GRAPHCMS_URL : "",
                                    `
                                      { 
                            Severity: Minor
                            Found in src/components/GirlsHooHack2023/JumpStart/JumpStart.tsx - About 1 hr to fix

                              Function fetchWorkshops has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  const fetchWorkshops = async () => {
                                    const { hackathonWorkshops } = await request(
                                      process.env.REACT_APP_GRAPHCMS_URL ? process.env.REACT_APP_GRAPHCMS_URL : "",
                                      `
                                        { 
                              Severity: Minor
                              Found in src/components/GirlsHooHack2022/JumpStart/JumpStart.tsx - About 1 hr to fix

                                Function Header has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                function Header(props: Props) {
                                  return (
                                    <div id={props.id} className="container-fluid m-0 bg-orange"
                                      style={{backgroundImage: `url(${Htmlbg})`, 
                                              backgroundRepeat: "no-repeat",
                                Severity: Minor
                                Found in src/components/Main/Header/Header.tsx - About 1 hr to fix

                                  Function Sessions has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  function Sessions() {
                                    const [sessions, setSessions] = useState([{'id': '', 'eventName': '', 'eventDetail': '', 'zoomLink': '', 'inPerson': ''}]);
                                    // const [dropdownOpen, setDropdownOpen] = useState(false);
                                  
                                    useEffect(() => {
                                  Severity: Minor
                                  Found in src/components/CareerFair2022/Schedule/Sessions.tsx - About 1 hr to fix

                                    Function Sessions has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    function Sessions() {
                                      const [sessions, setSessions] = useState([{'id': '', 'eventName': '', 'eventDetail': '', 'zoomLink': '', 'inPerson': ''}]);
                                      // const [dropdownOpen, setDropdownOpen] = useState(false);
                                    
                                      useEffect(() => {
                                    Severity: Minor
                                    Found in src/components/CareerFair2024/Schedule/Sessions.tsx - About 1 hr to fix

                                      Function GirlsHooHack has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      function GirlsHooHack() {
                                        return (
                                          <div className="overflow-auto">
                                            <BrowserView>
                                              <NavbarGHH />
                                      Severity: Minor
                                      Found in src/components/GirlsHooHack2022/GirlsHooHack.tsx - About 1 hr to fix

                                        Function GirlsHooHack has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        function GirlsHooHack() {
                                          return (
                                            <div className="overflow-auto">
                                              <BrowserView>
                                                <NavbarGHH />
                                        Severity: Minor
                                        Found in src/components/GirlsHooHack2023/GirlsHooHack.tsx - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language