forked from Planet-NULLCAST/curriculum
-
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.
fix: quill editer added Planet-NULLCAST#778
event discription editer added
- Loading branch information
Showing
3 changed files
with
29 additions
and
24 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
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,26 +1,32 @@ | ||
import styles from "./Detail.module.scss"; | ||
import EventDate from "../EventLayouts/EventDate"; | ||
import renderHTML from 'react-render-html'; | ||
|
||
export default function Detail({ event }) { | ||
const { meta_title, description, location, event_time } = event; | ||
return ( | ||
<section className={styles.detail__Wrap}> | ||
<div className="container"> | ||
<h1 className={styles.title}>{meta_title}</h1> | ||
<div className={styles.location__Wrap}> | ||
<span className={styles.icon}> | ||
<img src="/images/location-pin.svg" alt="location_Icon" /> | ||
</span> | ||
<span className={styles.location}>{location}</span> | ||
<h1 className={styles.title}>{meta_title}</h1> | ||
<div className={styles.location__Wrap}> | ||
<span className={styles.icon}> | ||
<img src="/images/location-pin.svg" alt="location_Icon" /> | ||
</span> | ||
<span className={styles.location}>{location}</span> | ||
</div> | ||
<div className={styles.event__counter}> | ||
<EventDate eventDate={event_time} /> | ||
</div> | ||
<div className={styles.content}> | ||
<h4>Description</h4> | ||
<div | ||
className="codeClass font-light js " | ||
dangerouslySetInnerHTML={{ __html: event.description }} | ||
/> | ||
</div> | ||
{/* <p dangerouslySetInnerHTML={{ __html: { description }} /> */} | ||
{/* </div> */} | ||
</div> | ||
<div className={styles.event__counter}> | ||
<EventDate eventDate={event_time} /> | ||
</div> | ||
<div className={styles.content}> | ||
<h4>Description</h4> | ||
<p>{description}</p> | ||
</div> | ||
</div> | ||
</section> | ||
) | ||
} | ||
</section > | ||
); | ||
} |
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