fix: href link from internal question in supervisor
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
cbb832bb7b
commit
8a91eb6294
|
|
@ -105,7 +105,7 @@ export default function FormQuestionsForward() {
|
|||
const [detailTickets, setDetailTickets] = useState<DetailTicket | null>(null);
|
||||
// const [selectedPriority, setSelectedPriority] = useState("");
|
||||
const [selectedPriority, setSelectedPriority] = useState<OptionType | null>(
|
||||
null
|
||||
null,
|
||||
);
|
||||
const [replyMessage, setReplyMessage] = useState("");
|
||||
const [selectedStatus, setSelectedStatus] = useState("");
|
||||
|
|
@ -237,7 +237,7 @@ export default function FormQuestionsForward() {
|
|||
|
||||
const handleChange = (
|
||||
selected: MultiValue<Option>,
|
||||
_actionMeta: ActionMeta<Option>
|
||||
_actionMeta: ActionMeta<Option>,
|
||||
) => {
|
||||
setSelectedOption([...selected]);
|
||||
};
|
||||
|
|
@ -311,13 +311,14 @@ export default function FormQuestionsForward() {
|
|||
{` `}
|
||||
mengirimkan pesan untuk{` `}
|
||||
<Link
|
||||
href={
|
||||
detail?.feed
|
||||
? detail?.feed?.permalink_url == undefined
|
||||
? detail?.feedUrl
|
||||
: detail?.feed?.permalink_url
|
||||
: ""
|
||||
}
|
||||
// href={
|
||||
// detail?.feed
|
||||
// ? detail?.feed?.permalink_url == undefined
|
||||
// ? detail?.feedUrl
|
||||
// : detail?.feed?.permalink_url
|
||||
// : ""
|
||||
// }
|
||||
href={detail?.feedUrl}
|
||||
target="_blank"
|
||||
className="font-bold"
|
||||
>
|
||||
|
|
@ -328,7 +329,7 @@ export default function FormQuestionsForward() {
|
|||
{`${new Date(detail?.createdAt).getDate()}-${
|
||||
new Date(detail?.createdAt).getMonth() + 1
|
||||
}-${new Date(detail?.createdAt).getFullYear()} ${new Date(
|
||||
detail?.createdAt
|
||||
detail?.createdAt,
|
||||
).getHours()}:${new Date(detail?.createdAt).getMinutes()}`}
|
||||
</p>
|
||||
</div>
|
||||
|
|
@ -388,7 +389,7 @@ export default function FormQuestionsForward() {
|
|||
<div className="flex flex-row gap-2 mb-2">
|
||||
{selectedOperator.map((id) => {
|
||||
const label = operatorOpt.find(
|
||||
(op: any) => op.value === id
|
||||
(op: any) => op.value === id,
|
||||
)?.label;
|
||||
return (
|
||||
<div
|
||||
|
|
@ -400,7 +401,7 @@ export default function FormQuestionsForward() {
|
|||
type="button"
|
||||
onClick={() =>
|
||||
setSelectedOperator((prev) =>
|
||||
prev.filter((val) => val !== id)
|
||||
prev.filter((val) => val !== id),
|
||||
)
|
||||
}
|
||||
className="ml-2 text-gray-500 hover:text-red-600"
|
||||
|
|
@ -439,7 +440,7 @@ export default function FormQuestionsForward() {
|
|||
]);
|
||||
} else {
|
||||
setSelectedOperator((prev) =>
|
||||
prev.filter((val) => val !== op.value)
|
||||
prev.filter((val) => val !== op.value),
|
||||
);
|
||||
}
|
||||
}}
|
||||
|
|
|
|||
|
|
@ -107,6 +107,7 @@ export type internalDetail = {
|
|||
id: number;
|
||||
fullname: string;
|
||||
};
|
||||
feedUrl: string;
|
||||
};
|
||||
|
||||
export default function FormQuestionsReply() {
|
||||
|
|
@ -493,9 +494,12 @@ export default function FormQuestionsReply() {
|
|||
{detailTicketsQuestions?.commentFromUserName}
|
||||
</span>{" "}
|
||||
mengirimkan komentar untuk{" "}
|
||||
<span className="font-bold text-sm">
|
||||
<Link href={
|
||||
detailTicketsQuestions?.feedUrl
|
||||
|
||||
} className="font-bold text-sm">
|
||||
{detailTicketsQuestions?.feedTitle}
|
||||
</span>
|
||||
</Link>
|
||||
</p>
|
||||
<p className="text-xs">
|
||||
{`${new Date(
|
||||
|
|
|
|||
Loading…
Reference in New Issue