Skip to content

Commit

Permalink
resolved merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
favouridoko1 committed Jul 23, 2024
1 parent be3c420 commit 4bd6400
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions app/routes/admin.email.edit-template.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { useNavigate } from "@remix-run/react";
import { useState } from "react";

import Button from "~/components/customButton/customButton";
import accordian from "../../public/icons/accordion.png";

const EditTemplate = () => {
const [htmlContent, setHtmlContent] = useState("");
const [allowEdit, setAllow] = useState(false);
const navigate = useNavigate();

const [content, setContent] = useState(
Expand All @@ -17,12 +16,11 @@ const EditTemplate = () => {
);
const [isEditing, setIsEditing] = useState(false);

const handleChange = (e: any) => {
setContent(e.target.value);
setBrandHtml(e.target.value);
const handleChange = (event) => {
setContent(event.target.value);
setBrandHtml(event.target.value);
};


const toggleEdit = () => {
setIsEditing(!isEditing);
};
Expand Down Expand Up @@ -83,9 +81,11 @@ const EditTemplate = () => {
type="text"
value={content}
onChange={handleChange}
className="w-fit outline-none "
className="w-fit outline-none"
/>
<Button className="ml-6 bg-slate-200" onClick={toggleEdit}>Save</Button>
<Button className="ml-6 bg-slate-200" onClick={toggleEdit}>
Save
</Button>
</div>
) : (
<div>
Expand All @@ -98,9 +98,9 @@ const EditTemplate = () => {
<br />
<br />
</li>
<Button className="w-32 font-bold text-background ">
Register Here
</Button>
<Button className="w-32 font-bold text-background">
Register Here
</Button>
</ul>
</div>
</div>
Expand Down

0 comments on commit 4bd6400

Please sign in to comment.