Skip to content

Commit

Permalink
Update Result.js
Browse files Browse the repository at this point in the history
  • Loading branch information
S-Subramanian-44 authored Mar 26, 2024
1 parent 6c4323e commit 337cff1
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions client/src/Result.js
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;

0 comments on commit 337cff1

Please sign in to comment.