gwcuva/gwc-website

View on GitHub

Showing 113 of 372 total issues

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

function Header(props: Props) {
  return (
    <div id={props.id} className="container-fluid m-0 bg-turq" >
        
        <Row xs={12} className="pt-5"></Row>
Severity: Minor
Found in src/components/GirlsHooHack2021/Header/Header.tsx - About 1 hr to fix

    Function Schedule has 37 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

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

      Function SponsorshipProspectus has 36 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function SponsorshipProspectus(): JSX.Element {
        const [link, setLink] = useState({'url': ''});//..
      
        useEffect(() => {
          const fetchLink = async () => {

        Function FAQ has 36 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

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

          Function SponsorshipProspectus has 36 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function SponsorshipProspectus(): JSX.Element {
            const [link, setLink] = useState({'url': ''});
          
            useEffect(() => {
              const fetchLink = async () => {

            Function FAQ has 36 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

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

              Function Schedule has 36 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

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

                Function Schedule has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

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

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

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

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

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

                      Function CareerFairLocation has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

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

                        Function CareerFairLocation has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

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

                          Function App has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function App() {
                            return (
                              <BrowserRouter>
                                <Switch>
                                  <Route exact path="/branding">
                          Severity: Minor
                          Found in src/App.tsx - About 1 hr to fix

                            Function FAQ has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function FAQ() {
                            
                              const [faq, setFaq] = useState([{'question': '', 'answer': ''}]);
                            
                              useEffect(() => {
                            Severity: Minor
                            Found in src/components/GirlsHooHack2021/FAQ/FAQ.tsx - About 1 hr to fix

                              Function FAQ has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              function FAQ() {
                              
                                const [faq, setFaq] = useState([{'question': '', 'answer': ''}]);
                              
                                useEffect(() => {
                              Severity: Minor
                              Found in src/components/CareerFair2022/FAQ/FAQ.tsx - About 1 hr to fix

                                Function Footer has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                function Footer(props: Props) {
                                  return (
                                    <div id={props.id}>
                                      <img src={footerWaves} style={{transform: 'rotate(180deg)', marginBottom:-1}} alt="Orange wave"/>
                                      <div className="bg-orange d-flex flex-row pb-5 pt-5">
                                Severity: Minor
                                Found in src/components/Main/Footer/Footer.tsx - About 1 hr to fix

                                  Function FAQ has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  function FAQ() {
                                  
                                    const [faq, setFaq] = useState([{'question': '', 'answer': ''}]);
                                  
                                    useEffect(() => {
                                  Severity: Minor
                                  Found in src/components/CareerFair2023/FAQ/FAQ.tsx - About 1 hr to fix

                                    Function FAQ has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    function FAQ() {
                                    
                                      const [faq, setFaq] = useState([{'question': '', 'answer': ''}]);
                                    
                                      useEffect(() => {
                                    Severity: Minor
                                    Found in src/components/CareerFair2024/FAQ/FAQ.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/GirlsHooHack2021/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/CareerFair2023/OneOnOneSchedule/OneOnOneSchedule.tsx - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language