fix app build eslint issues
This commit is contained in:
parent
7a3cf063ed
commit
0be0070568
@ -16,9 +16,9 @@ const eslintConfig = [
|
|||||||
"next/core-web-vitals",
|
"next/core-web-vitals",
|
||||||
"next/typescript",
|
"next/typescript",
|
||||||
],
|
],
|
||||||
// rules: {
|
rules: {
|
||||||
// "@typescript-eslint/no-explicit-any": "off"
|
"@typescript-eslint/no-explicit-any": "off"
|
||||||
// },
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
),
|
),
|
||||||
@ -32,6 +32,6 @@ const eslintConfig = [
|
|||||||
// }
|
// }
|
||||||
];
|
];
|
||||||
|
|
||||||
console.info("eslint config",eslintConfig)
|
// console.info("eslint config",eslintConfig)
|
||||||
|
|
||||||
export default eslintConfig;
|
export default eslintConfig;
|
||||||
|
|||||||
@ -3,6 +3,7 @@ import {YogaSingleService_Plain} from "@/types/generated-strapi-interfaces/api/y
|
|||||||
import {StrapiFile} from "@/types/types";
|
import {StrapiFile} from "@/types/types";
|
||||||
import strapiApi from "@/api/strapi/strapi-api";
|
import strapiApi from "@/api/strapi/strapi-api";
|
||||||
import styles from './our.services.item.component.module.css'
|
import styles from './our.services.item.component.module.css'
|
||||||
|
import Link from "next/link";
|
||||||
|
|
||||||
export interface Props {
|
export interface Props {
|
||||||
config: YogaSingleService_Plain
|
config: YogaSingleService_Plain
|
||||||
@ -10,6 +11,9 @@ export interface Props {
|
|||||||
|
|
||||||
const OurServiceItemComponent = ({config: {header,description,image}}: Props) => {
|
const OurServiceItemComponent = ({config: {header,description,image}}: Props) => {
|
||||||
const imageFile: StrapiFile = image as StrapiFile;
|
const imageFile: StrapiFile = image as StrapiFile;
|
||||||
|
if (!imageFile || !imageFile.url) {
|
||||||
|
return null
|
||||||
|
}
|
||||||
return (
|
return (
|
||||||
|
|
||||||
<div className={styles.serviceSlide}>
|
<div className={styles.serviceSlide}>
|
||||||
@ -17,15 +21,15 @@ const OurServiceItemComponent = ({config: {header,description,image}}: Props) =>
|
|||||||
<div className="services_box_content">
|
<div className="services_box_content">
|
||||||
<div className="services_box_upper_portion">
|
<div className="services_box_upper_portion">
|
||||||
<figure className="mb-0">
|
<figure className="mb-0">
|
||||||
<YogaImageComponent src={strapiApi.getImageUrl(imageFile?.url)} alt="" className="img-fluid"/>
|
<YogaImageComponent src={strapiApi.getImageUrl(imageFile.url)} alt="" className="img-fluid"/>
|
||||||
</figure>
|
</figure>
|
||||||
</div>
|
</div>
|
||||||
<div className="services_box_lower_portion">
|
<div className="services_box_lower_portion">
|
||||||
<h3>{header}</h3>
|
<h3>{header}</h3>
|
||||||
<p>{description}</p>
|
<p>{description}</p>
|
||||||
<div className="btn_wrapper">
|
<div className="btn_wrapper">
|
||||||
<a href="/services" className="text-decoration-none"><i
|
<Link href="/services" className="text-decoration-none"><i
|
||||||
className="fa-solid fa-arrow-right" aria-hidden="true"></i></a>
|
className="fa-solid fa-arrow-right" aria-hidden="true"></i></Link>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user