Skip to content

Commit 8df8423

Browse files
committed
Update frontend/src/app/board/[year]/candidates/page.tsx
1 parent 450fe6e commit 8df8423

File tree

1 file changed

+28
-24
lines changed
  • frontend/src/app/board/[year]/candidates

1 file changed

+28
-24
lines changed

frontend/src/app/board/[year]/candidates/page.tsx

Lines changed: 28 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ const BoardCandidatesPage = () => {
9292
const { year } = useParams<{ year: string }>()
9393
const [candidates, setCandidates] = useState<CandidateWithSnapshot[]>([])
9494
const [isLoading, setIsLoading] = useState(true)
95-
const [boardUrl, setBoardUrl] = useState<string>('')
9695

9796
const { data: graphQLData, error: graphQLRequestError } = useQuery(GetBoardCandidatesDocument, {
9897
variables: { year: Number.parseInt(year) },
@@ -101,7 +100,6 @@ const BoardCandidatesPage = () => {
101100
useEffect(() => {
102101
if (graphQLData?.boardOfDirectors) {
103102
setCandidates(graphQLData.boardOfDirectors.candidates || [])
104-
setBoardUrl(graphQLData.boardOfDirectors.owaspUrl || '')
105103
setIsLoading(false)
106104
}
107105
if (graphQLRequestError) {
@@ -670,30 +668,36 @@ const BoardCandidatesPage = () => {
670668
{year} Board of Directors Candidates
671669
</h1>
672670
<p className="mt-2 text-gray-600 dark:text-gray-400">
673-
Meet the candidates running for the OWASP Board of Directors
674-
{boardUrl && (
675-
<>
676-
{' '}
677-
(
678-
<Link
679-
href={boardUrl}
680-
target="_blank"
681-
rel="noopener noreferrer"
682-
className="text-blue-600 hover:underline dark:text-blue-400"
683-
>
684-
view election details
685-
</Link>
686-
)
687-
</>
688-
)}
671+
Meet the candidates running for the OWASP Board of Directors. For official election
672+
information, visit the{' '}
673+
<Link
674+
href={`https://board.owasp.org/elections/${year}_elections`}
675+
target="_blank"
676+
rel="noopener noreferrer"
677+
className="text-blue-600 hover:underline dark:text-blue-400"
678+
>
679+
OWASP Board Elections page
680+
</Link>{' '}
681+
and the{' '}
682+
<Link
683+
href="https://owasp.org/www-board-candidates/"
684+
target="_blank"
685+
rel="noopener noreferrer"
686+
className="text-blue-600 hover:underline dark:text-blue-400"
687+
>
688+
official candidate pages
689+
</Link>
690+
.
689691
</p>
690692
<p className="mt-3 text-sm text-gray-500 italic dark:text-gray-500">
691-
This page represents all verifiable OWASP GitHub organization contributions and only OWASP
692-
Slack workspace engagements (January 1 to October 1, {year}). Some projects (especially
693-
Flagship level ones) may have their own Slack workspaces -- their data is not presented
694-
here. Additionally, certain project workflows based on platforms other than GitHub (e.g.,
695-
Google Docs or similar) are not included in this data. The code is open source and
696-
available as part of{' '}
693+
This page represents all verifiable OWASP GitHub organization related contributions and
694+
only OWASP Slack workspace engagement data (January 1 to October 1, {year}). Some projects
695+
(especially Flagship level ones) may have their own Slack workspaces -- their data is not
696+
presented here. Some forms of community engagement are not publicly visible and cannot be
697+
fully tracked without access to private communications, so this overview may not capture
698+
all contributions. Additionally, certain project workflows based on platforms other than
699+
GitHub (e.g., Google Docs or similar) are not included in this data. The code is open
700+
source and available as part of{' '}
697701
<Link
698702
href="https://github.com/OWASP/Nest"
699703
target="_blank"

0 commit comments

Comments
 (0)