Skip to content

Commit

Permalink
fix: quill editer added Planet-NULLCAST#778
Browse files Browse the repository at this point in the history
event discription editer added
  • Loading branch information
jasurobo committed Jan 18, 2022
1 parent 3aae6e5 commit fe1fb6b
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 24 deletions.
6 changes: 2 additions & 4 deletions component/admin/EventInfo.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ export default function EventInfo({ eventDetails, setEventDetails, eventDetailsE
[{ header: '1' }, { header: '2' }, { header: [3, 4, 5, 6] }, { font: [] }],
[{ size: [] }],
['bold', 'italic', 'underline', 'strike', 'blockquote'],
[{ list: 'ordered' }, { list: 'bullet' }],
['link', 'image', 'video'],
// [{ list: 'ordered' }, { list: 'bullet' }],
// ['link', 'image', 'video'],
['clean'],
['code-block']
]
Expand All @@ -39,8 +39,6 @@ export default function EventInfo({ eventDetails, setEventDetails, eventDetailsE
'list',
'bullet',
'link',
'image',
'video',
'code-block'
];

Expand Down
40 changes: 23 additions & 17 deletions component/layout/EventDetails/Detail.jsx
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 >
);
}
7 changes: 4 additions & 3 deletions component/layout/EventLayouts/EventFeatured.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ export default function EventFeatured({ event }) {
/>
)}
<button>
<img
src="/images/event-card.svg"
<img
src="/images/event-card.svg"
alt="Event_Card_Icon"
width={19.94}
height={19.94} />
Expand Down Expand Up @@ -64,7 +64,8 @@ export default function EventFeatured({ event }) {
</span>
<span className={styles.location}>{event?.location}</span>
</p>
<p>{`${event?.description}`.length > 180 ? `${event?.description}`.slice(0,180) + "..." : `${event?.description}`}</p>
<div className="codeClass font-light js "
dangerouslySetInnerHTML={{ __html: (`${event?.description}`.length > 180 ? `${event?.description}`.slice(0, 180) + "..." : `${event?.description}`) }} />
</div>
</Fade>
</div>
Expand Down

0 comments on commit fe1fb6b

Please sign in to comment.