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/typescript",
|
||||
],
|
||||
// rules: {
|
||||
// "@typescript-eslint/no-explicit-any": "off"
|
||||
// },
|
||||
rules: {
|
||||
"@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;
|
||||
|
||||
@ -3,6 +3,7 @@ import {YogaSingleService_Plain} from "@/types/generated-strapi-interfaces/api/y
|
||||
import {StrapiFile} from "@/types/types";
|
||||
import strapiApi from "@/api/strapi/strapi-api";
|
||||
import styles from './our.services.item.component.module.css'
|
||||
import Link from "next/link";
|
||||
|
||||
export interface Props {
|
||||
config: YogaSingleService_Plain
|
||||
@ -10,6 +11,9 @@ export interface Props {
|
||||
|
||||
const OurServiceItemComponent = ({config: {header,description,image}}: Props) => {
|
||||
const imageFile: StrapiFile = image as StrapiFile;
|
||||
if (!imageFile || !imageFile.url) {
|
||||
return null
|
||||
}
|
||||
return (
|
||||
|
||||
<div className={styles.serviceSlide}>
|
||||
@ -17,15 +21,15 @@ const OurServiceItemComponent = ({config: {header,description,image}}: Props) =>
|
||||
<div className="services_box_content">
|
||||
<div className="services_box_upper_portion">
|
||||
<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>
|
||||
</div>
|
||||
<div className="services_box_lower_portion">
|
||||
<h3>{header}</h3>
|
||||
<p>{description}</p>
|
||||
<div className="btn_wrapper">
|
||||
<a href="/services" className="text-decoration-none"><i
|
||||
className="fa-solid fa-arrow-right" aria-hidden="true"></i></a>
|
||||
<Link href="/services" className="text-decoration-none"><i
|
||||
className="fa-solid fa-arrow-right" aria-hidden="true"></i></Link>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user