Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Zewed committed May 15, 2024
1 parent 7cdb02d commit 744cb10
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@use "@/styles/Radius.module.scss";
@use "@/styles/Spacings.module.scss";
@use "@/styles/Typography.module.scss";

Expand All @@ -6,4 +7,10 @@
padding-left: Spacings.$spacing06;
font-size: Typography.$tiny;
@include Typography.EllipsisOverflow;
border-radius: Radius.$small;
cursor: pointer;

&:hover {
background-color: var(--background-1);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@ const KnowledgeItem = ({ knowledge }: KnowledgeItemProps): JSX.Element => {
return (
<div className={styles.knowledge_item_wrapper}>
{isUploadedKnowledge(knowledge) ? (
<span className={styles.name}>
{knowledge.fileName}djsklqjdlqshdkqsgdqsklgdsqhgdsjdhkgkd
qshgdsgdqsgqshd qshg
</span>
<span className={styles.name}>{knowledge.fileName}</span>
) : (
<a
className={styles.name}
Expand Down
11 changes: 11 additions & 0 deletions frontend/app/knowledge/page.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,25 @@
"use client";

import PageHeader from "@/lib/components/PageHeader/PageHeader";
import { useKnowledgeToFeedContext } from "@/lib/context/KnowledgeToFeedProvider/hooks/useKnowledgeToFeedContext";
import { ButtonType } from "@/lib/types/QuivrButton";

import KnowledgeList from "./KnowledgeList/KnowledgeList";
import NotesEditor from "./NotesEditor/NotesEditor";
import styles from "./page.module.scss";

const Knowledge = (): JSX.Element => {
const { setShouldDisplayFeedCard } = useKnowledgeToFeedContext();

const buttons: ButtonType[] = [
{
label: "Add knowledge",
color: "primary",
onClick: () => {
setShouldDisplayFeedCard(true);
},
iconName: "uploadFile",
},
{
label: "New",
color: "primary",
Expand Down

0 comments on commit 744cb10

Please sign in to comment.