Fix CSS lint warning
This commit is contained in:
parent
39f66f2966
commit
e715f1c91c
@ -1,6 +1,5 @@
|
||||
import React from 'react';
|
||||
import { Link } from 'react-router-dom';
|
||||
import './PostCard.css';
|
||||
|
||||
const PostCard = ({ post }) => {
|
||||
const { title, excerpt, slug, _embedded } = post;
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
import React from 'react';
|
||||
import { Link } from 'react-router-dom';
|
||||
import './ResourceListItem.css';
|
||||
|
||||
const ResourceListItem = ({ post }) => {
|
||||
const { title, date, slug, _embedded } = post;
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
import consultantProfile from '../assets/consultant_profile.png';
|
||||
import './About.css';
|
||||
|
||||
const About = () => {
|
||||
return (
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import './Cases.css';
|
||||
|
||||
|
||||
const Cases = () => {
|
||||
const caseStudies = [
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import React from 'react';
|
||||
import { usePosts } from '../hooks/usePosts';
|
||||
import PostCard from '../components/PostCard';
|
||||
import './News.css';
|
||||
|
||||
|
||||
const News = () => {
|
||||
// Pass the category slug 'news' to filter posts
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { useParams, Link } from 'react-router-dom';
|
||||
import { wpApi } from '../api/wordpress';
|
||||
import './NewsDetail.css';
|
||||
|
||||
|
||||
const NewsDetail = () => {
|
||||
const { slug } = useParams();
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
import React, { useState } from 'react';
|
||||
import { usePosts } from '../hooks/usePosts';
|
||||
import ResourceListItem from '../components/ResourceListItem';
|
||||
import './Resources.css';
|
||||
|
||||
// IMPORTANT: Slugs must match your WordPress Category Slugs
|
||||
const CATEGORIES = {
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
import React from 'react';
|
||||
import { useNavigate } from 'react-router-dom';
|
||||
import './ServiceDetail.css';
|
||||
|
||||
const ServiceDetail = () => {
|
||||
const navigate = useNavigate();
|
||||
|
||||
@ -355,6 +355,7 @@ body {
|
||||
flex: 1;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 3;
|
||||
line-clamp: 3;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user