Skip to content

Conversation

@sanchayan721
Copy link
Contributor

Anchor Scroll buttons added.

@@ -1,3 +1,4 @@
import { Dispatch, SetStateAction } from 'react';
import { LG, Tabs } from '@appquality/unguess-design-system';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Dispatch", "SetStateAction" are not used, there are 2 warnings. Remember to run yarn validate to see if there are any issues.

Also I suggest to use also the scripts format:check and format:fix for formatting purposes. Check package.json

import styled from 'styled-components';
import { theme as globalTheme } from 'src/app/theme';
import { ReactComponent as DetailsIcon } from 'src/assets/icons/details-icon.svg';
import { Dispatch, SetStateAction } from 'react';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove useless imports

import { useGetCampaignsByCidBugsAndBidQuery } from 'src/features/api';
import { getSelectedBugId } from 'src/features/bugsPage/bugsPageSlice';
import { useEffect, useRef } from 'react';
import { Dispatch, SetStateAction, useEffect, useRef, useState } from 'react';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove useless imports


const AnchorButtons = (): ReactElement => (
<FlexComponent>
<Link
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the controls if the relative sections are visible are missing. So in this case for example you will see the attachments anchor even if the attachments section is hidden (no media).

Remember to check and implement the same behavior that we set to show/hide all the sections

@sanchayan721 sanchayan721 requested a review from marcbon February 16, 2023 15:47
import { useGetCampaignsByCidBugsAndBidQuery } from 'src/features/api';
import { getSelectedBugId } from 'src/features/bugsPage/bugsPageSlice';
import { useEffect, useRef } from 'react';
import AnchorButtons from 'src/common/components/AnchorButtons';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this component AnchorButtons should be moved inside the BugDetail folder, just to be more clear since it's related to that component

@sinatragianpaolo sinatragianpaolo temporarily deployed to Staging February 17, 2023 09:12 — with GitHub Actions Inactive
@corneliogiansenio corneliogiansenio temporarily deployed to Staging February 17, 2023 11:46 — with GitHub Actions Inactive
@cannarocks cannarocks temporarily deployed to Staging February 17, 2023 16:03 — with GitHub Actions Inactive
@cannarocks cannarocks merged commit 7b0473b into develop Feb 17, 2023
@cannarocks cannarocks deleted the UN-557-anchor-buttons branch February 17, 2023 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants