change new.humas to humas
This commit is contained in:
parent
67b662dfc7
commit
9acdba3400
|
|
@ -73,7 +73,7 @@ export default function NewsDetailPage(props: { datas: any }) {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="bg-gray-50 text-black dark:bg-black dark:text-white lg:px-24 my-4 lg:my-8 pt-3 lg:pb-4 rounded-lg shadow-md h-fit ">
|
<div className="bg-gray-50 text-black dark:bg-black dark:text-white lg:px-24 my-4 lg:my-8 pt-3 lg:pb-4 rounded-lg shadow-md h-fit ">
|
||||||
<RelatedNews categories={props.datas.categories} />
|
<RelatedNews categories={props?.datas?.categories} />
|
||||||
</div>
|
</div>
|
||||||
<div className="md:hidden text-black">
|
<div className="md:hidden text-black">
|
||||||
<SidebarDetail />
|
<SidebarDetail />
|
||||||
|
|
|
||||||
|
|
@ -180,7 +180,16 @@ export default function DetailNews(props: { data: any; listArticle: any }) {
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
filteredFiles?.length > 0 && (
|
filteredFiles?.length > 0 && (
|
||||||
<Image
|
// <Image
|
||||||
|
// // classNames={{
|
||||||
|
// // wrapper: "!w-full !max-w-full",
|
||||||
|
// // img: "!w-full",
|
||||||
|
// // }}
|
||||||
|
// alt="Main Image"
|
||||||
|
// src={filteredFiles[imageNow]?.file_url}
|
||||||
|
// className="object-cover w-auto h-[360px] md:h-[480px] mx-auto rounded-md"
|
||||||
|
// />
|
||||||
|
<img
|
||||||
// classNames={{
|
// classNames={{
|
||||||
// wrapper: "!w-full !max-w-full",
|
// wrapper: "!w-full !max-w-full",
|
||||||
// img: "!w-full",
|
// img: "!w-full",
|
||||||
|
|
@ -257,7 +266,12 @@ export default function DetailNews(props: { data: any; listArticle: any }) {
|
||||||
onClick={() => setImageNow(index)}
|
onClick={() => setImageNow(index)}
|
||||||
className="cursor-pointer"
|
className="cursor-pointer"
|
||||||
>
|
>
|
||||||
<Image
|
{/* <Image
|
||||||
|
alt="NextUI hero Image"
|
||||||
|
src={file?.file_url}
|
||||||
|
className="object-cover w-[75px] lg:w-[150px] h-[50px] lg:h-[100px] rounded-md"
|
||||||
|
/> */}
|
||||||
|
<img
|
||||||
alt="NextUI hero Image"
|
alt="NextUI hero Image"
|
||||||
src={file?.file_url}
|
src={file?.file_url}
|
||||||
className="object-cover w-[75px] lg:w-[150px] h-[50px] lg:h-[100px] rounded-md"
|
className="object-cover w-[75px] lg:w-[150px] h-[50px] lg:h-[100px] rounded-md"
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -1,7 +1,7 @@
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
|
|
||||||
// const baseURL = "http://10.200.202.141:8802";
|
// const baseURL = "http://10.200.202.141:8802";
|
||||||
const baseURL = "https://new.humas.polri.go.id/api";
|
const baseURL = "https://humas.polri.go.id/api";
|
||||||
|
|
||||||
const axiosInterceptorInstance = axios.create({
|
const axiosInterceptorInstance = axios.create({
|
||||||
baseURL,
|
baseURL,
|
||||||
|
|
|
||||||
|
|
@ -2,11 +2,7 @@
|
||||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
case `uname` in
|
case `uname` in
|
||||||
*CYGWIN*|*MINGW*|*MSYS*)
|
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||||
if command -v cygpath > /dev/null 2>&1; then
|
|
||||||
basedir=`cygpath -w "$basedir"`
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ -x "$basedir/node" ]; then
|
if [ -x "$basedir/node" ]; then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue