Skip to content

Commit 4343c56

Browse files
Update components to work with Pterodactyl@1.9.1
1 parent 47ede92 commit 4343c56

File tree

4 files changed

+7
-12
lines changed

4 files changed

+7
-12
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/.idea/

resources/scripts/components/dashboard/knowledgebase/KnowledgebaseContainer.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React, {useEffect} from 'react';
22
import PageContentBlock from "@/components/elements/PageContentBlock";
33
import useFlash from "@/plugins/useFlash";
4-
import { faBook } from "@fortawesome/free-solid-svg-icons";
54
import useSWR from "swr";
65
import {categories, Category} from "@/api/knowledgebase";
76
import 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;

resources/scripts/components/dashboard/knowledgebase/QuestionsContainer.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ import MessageBox from "@/components/MessageBox";
1111
import GreyRowBox from "@/components/elements/GreyRowBox";
1212
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
1313

14-
interface Props {
15-
id: string;
16-
}
17-
1814
const 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;

resources/scripts/components/dashboard/knowledgebase/ViewQuestion.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import React, {useEffect} from "react";
2-
import {RouteComponentProps, useRouteMatch} from "react-router-dom";
2+
import {useRouteMatch} from "react-router-dom";
33
import useFlash from "@/plugins/useFlash";
44
import useSWR from "swr";
55
import {question} from "@/api/knowledgebase";
66
import PageContentBlock from "@/components/elements/PageContentBlock";
7-
import {faBook} from "@fortawesome/free-solid-svg-icons";
87
import tw from "twin.macro";
98
import Spinner from "@/components/elements/Spinner";
109
import 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;

0 commit comments

Comments
 (0)