@@ -6,7 +6,9 @@ import BugDescription from 'src/common/components/BugDetail/Description';
66import BugAttachments from 'src/common/components/BugDetail/Attachments' ;
77import BugDetails from 'src/common/components/BugDetail/Details' ;
88import { BugDuplicates } from 'src/common/components/BugDetail/BugDuplicates' ;
9+ import { AnchorButtons } from 'src/common/components/BugDetail/AnchorButtons' ;
910import BugHeader from './components/BugHeader' ;
11+ import { BugPreviewContextProvider } from '../Bugs/Content/context/BugPreviewContext' ;
1012
1113interface Props {
1214 bug : Exclude < GetCampaignsByCidBugsAndBidApiResponse , undefined > ;
@@ -15,14 +17,21 @@ interface Props {
1517
1618export const Content = ( { bug, campaignId } : Props ) => (
1719 < ContainerCard >
18- < BugHeader bug = { bug } />
19- < BugMeta bug = { bug } />
20- < div style = { { width : '50%' } } >
21- < BugTags bug = { bug } campaignId = { parseInt ( campaignId , 10 ) } bugId = { bug . id } />
22- </ div >
23- < BugDescription bug = { bug } />
24- { bug . media && bug . media . length ? < BugAttachments bug = { bug } /> : null }
25- < BugDetails bug = { bug } />
26- < BugDuplicates cid = { parseInt ( campaignId , 10 ) } bugId = { bug . id } />
20+ < BugPreviewContextProvider >
21+ < BugHeader bug = { bug } />
22+ < BugMeta bug = { bug } />
23+ < AnchorButtons bug = { bug } />
24+ < div style = { { width : '50%' } } >
25+ < BugTags
26+ bug = { bug }
27+ campaignId = { parseInt ( campaignId , 10 ) }
28+ bugId = { bug . id }
29+ />
30+ </ div >
31+ < BugDescription bug = { bug } />
32+ { bug . media && bug . media . length ? < BugAttachments bug = { bug } /> : null }
33+ < BugDetails bug = { bug } />
34+ < BugDuplicates cid = { parseInt ( campaignId , 10 ) } bugId = { bug . id } />
35+ </ BugPreviewContextProvider >
2736 </ ContainerCard >
2837) ;
0 commit comments