File tree Expand file tree Collapse file tree 4 files changed +7
-12
lines changed
resources/scripts/components/dashboard/knowledgebase Expand file tree Collapse file tree 4 files changed +7
-12
lines changed Original file line number Diff line number Diff line change 1+ /.idea /
Original file line number Diff line number Diff line change 11import React , { useEffect } from 'react' ;
22import PageContentBlock from "@/components/elements/PageContentBlock" ;
33import useFlash from "@/plugins/useFlash" ;
4- import { faBook } from "@fortawesome/free-solid-svg-icons" ;
54import useSWR from "swr" ;
65import { categories , Category } from "@/api/knowledgebase" ;
76import tw from "twin.macro" ;
@@ -34,7 +33,7 @@ const KnowledgebaseContainer = () => {
3433 :
3534 < div css = { tw `w-full flex flex-wrap justify-evenly md:justify-between` } >
3635 { data . map ( ( category : Category ) => (
37- < TitledGreyBox title = { category . name } css = { tw `w-9/12 md:w-5/12 lg:w-3/10 mb-6` } >
36+ < TitledGreyBox title = { category . name } css = { tw `w-9/12 md:w-5/12 lg:w-[30%] mb-6` } >
3837 < div css = { tw `h-16 whitespace-normal text-sm` } >
3938 < p dangerouslySetInnerHTML = { { __html : category . description } } />
4039 </ div >
@@ -52,4 +51,4 @@ const KnowledgebaseContainer = () => {
5251 )
5352} ;
5453
55- export default KnowledgebaseContainer ;
54+ export default KnowledgebaseContainer ;
Original file line number Diff line number Diff line change @@ -11,10 +11,6 @@ import MessageBox from "@/components/MessageBox";
1111import GreyRowBox from "@/components/elements/GreyRowBox" ;
1212import { FontAwesomeIcon } from "@fortawesome/react-fontawesome" ;
1313
14- interface Props {
15- id : string ;
16- }
17-
1814const QuestionsContainer = ( ) => {
1915 const match = useRouteMatch < { id : string } > ( ) ;
2016 const { clearFlashes, clearAndAddHttpError } = useFlash ( ) ;
@@ -68,4 +64,4 @@ const QuestionsContainer = () => {
6864 )
6965}
7066
71- export default QuestionsContainer ;
67+ export default QuestionsContainer ;
Original file line number Diff line number Diff line change 11import React , { useEffect } from "react" ;
2- import { RouteComponentProps , useRouteMatch } from "react-router-dom" ;
2+ import { useRouteMatch } from "react-router-dom" ;
33import useFlash from "@/plugins/useFlash" ;
44import useSWR from "swr" ;
55import { question } from "@/api/knowledgebase" ;
66import PageContentBlock from "@/components/elements/PageContentBlock" ;
7- import { faBook } from "@fortawesome/free-solid-svg-icons" ;
87import tw from "twin.macro" ;
98import Spinner from "@/components/elements/Spinner" ;
109import TitledGreyBox from "@/components/elements/TitledGreyBox" ;
@@ -33,7 +32,7 @@ const ViewQuestion = () => {
3332 < strong > Updated:</ strong > { data . updated_at } < br />
3433 < strong > Created:</ strong > { data . created_at } < br />
3534 </ TitledGreyBox >
36- < ContentBox css = { tw `w-full mt-4 md:mt-0 md:ml-4 md:w-73/100 ` } >
35+ < ContentBox css = { tw `w-full mt-4 md:mt-0 md:ml-4 md:w-[73%] ` } >
3736 < span dangerouslySetInnerHTML = { { __html : data . information } } />
3837 </ ContentBox >
3938 </ div >
@@ -42,4 +41,4 @@ const ViewQuestion = () => {
4241 )
4342} ;
4443
45- export default ViewQuestion ;
44+ export default ViewQuestion ;
You can’t perform that action at this time.
0 commit comments