-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6c4323e
commit 337cff1
Showing
1 changed file
with
11 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,33 @@ | ||
import React from 'react'; | ||
import './'; | ||
import Logoutheader from './Logoutheader'; | ||
import './contact.css'; // Assuming you have a CSS file for styling | ||
import Logoutheader from './Logoutheader'; // Import the Logoutheader component | ||
import { IonIcon } from '@ionic/react'; | ||
import { closeOutline } from 'ionicons/icons'; | ||
import { Link } from 'react-router-dom'; | ||
import { Link } from 'react-router-dom'; // Import Link from react-router-dom | ||
|
||
function Contact() { | ||
function Result() { | ||
const today = new Date(); | ||
|
||
|
||
const futureDate = new Date(today); | ||
futureDate.setDate(futureDate.getDate() + 15); | ||
|
||
// Format the future date for display | ||
const formattedDate = futureDate.toDateString(); | ||
|
||
return ( | ||
<div className="body-background"> | ||
<Logoutheader /> | ||
<Logoutheader /> {/* Include the Logoutheader component */} | ||
<div className="wrapper2"> | ||
<Link to="/voterpage"> {/* Link to the voter page */} | ||
<span className="icon-close" id="redirectButton2"> | ||
<IonIcon icon={closeOutline} /> | ||
</span> | ||
</Link> | ||
<div className="form-box login"> | ||
<h3>Results to be published through NEWS on {futureDate}</h3> | ||
<h3>Results to be published through NEWS on {formattedDate}</h3> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default Contact; | ||
export default Result; |