(props: Props)
| 83 | } |
| 84 | |
| 85 | export default function AddForm(props: Props) { |
| 86 | const viewer = useFragment(viewerFragment, props.viewer) |
| 87 | const parentTopic = useFragment(parentTopicFragment, props.parentTopic) |
| 88 | const isPrivateRepo = !!viewer.selectedRepo?.isPrivate |
| 89 | |
| 90 | const selectRepositoryStyle = { |
| 91 | backgroundColor: isPrivateRepo ? |
| 92 | viewer.selectedRepo?.displayColor : |
| 93 | 'transparent', |
| 94 | } |
| 95 | |
| 96 | return ( |
| 97 | <form className="border rounded-1 px-md-2 px-3 mt-3" style={selectRepositoryStyle}> |
| 98 | <SelectRepository currentTopicId={parentTopic.id} viewer={viewer} /> |
| 99 | <InnerAddForm isPrivateRepo={isPrivateRepo} topic={parentTopic} viewer={viewer} /> |
| 100 | </form> |
| 101 | ) |
| 102 | } |
nothing calls this directly
no outgoing calls
no test coverage detected