diff --git a/popup/src/components/EmptySelection.jsx b/popup/src/components/EmptySelection.jsx index c811118..9cf48b0 100644 --- a/popup/src/components/EmptySelection.jsx +++ b/popup/src/components/EmptySelection.jsx @@ -1,38 +1,34 @@ import React, { useState } from "react"; -import { Card, CardActions, Typography } from "@mui/material"; -import astronautUfo from "../assets/ufo_ast.png"; -import { Button } from "@mantine/core"; -import { openAllSnipdPage } from "../utils/snippitUtils"; -import "../styles/EmptySelection.css"; +import { Button, Group, Image, Stack, Text } from "@mantine/core"; + import { NewNote } from "./NewNote"; +import { openAllSnipdPage } from "../utils/snippitUtils"; +import astronautUfo from "../assets/ufo_ast.png"; export function EmptySelection() { const [isNewNote, setIsNewNote] = useState(false); const NoSelect = () => { return ( -
+
- Logo - - - To save a snippet, please make a selection.
- It appears that no text/image/link has been selected. -
-
-
+ Logo + + To save a snippet, please make a selection.
+ It appears that no text/image/link has been selected. +
- - - - -
+ + ); }; diff --git a/popup/src/components/NewCategory..jsx b/popup/src/components/NewCategory..jsx index db26841..fd0cb97 100644 --- a/popup/src/components/NewCategory..jsx +++ b/popup/src/components/NewCategory..jsx @@ -1,9 +1,7 @@ import React, { useState } from "react"; -import { TextField, Button, Box } from "@mui/material"; -import "../styles/Categories.css"; +import { Button, Group, TextInput } from "@mantine/core"; function NewCategory({ addCategory }) { - const [newCategoryName, setNewCategoryName] = useState(""); const handleChange = (event) => { @@ -15,25 +13,18 @@ function NewCategory({ addCategory }) { }; return ( -
- + - -
+ ); } diff --git a/popup/src/components/NewNote.jsx b/popup/src/components/NewNote.jsx index 78e0c65..6461e93 100644 --- a/popup/src/components/NewNote.jsx +++ b/popup/src/components/NewNote.jsx @@ -1,10 +1,7 @@ -// NewNote.js - import React, { useState } from "react"; -import { CardActions, TextField } from "@mui/material"; -import { Button } from "@mantine/core"; +import { Button, Textarea } from "@mantine/core"; + import { saveNote } from "../utils/snippitUtils"; -import "../styles/EmptySelection.css"; export function NewNote({ onClose }) { const [noteContent, setNoteContent] = useState(""); @@ -17,19 +14,18 @@ export function NewNote({ onClose }) { return ( <> - setNoteContent(e.target.value)} /> - - - + ); } diff --git a/popup/src/styles/Categories.css b/popup/src/styles/Categories.css deleted file mode 100644 index 2e0c801..0000000 --- a/popup/src/styles/Categories.css +++ /dev/null @@ -1,14 +0,0 @@ -.margin-8 { - margin: 8px; -} - -.new-category-div{ - align-items: center; - align-content: center; - display: flex; -} - -.add-category-button{ - margin: 8px; - justify-content: center; -} \ No newline at end of file diff --git a/popup/src/styles/EmptySelection.css b/popup/src/styles/EmptySelection.css deleted file mode 100644 index 453741a..0000000 --- a/popup/src/styles/EmptySelection.css +++ /dev/null @@ -1,25 +0,0 @@ -.emptySelectionDiv { - display: flex; - flex-direction: column; - justify-content: space-evenly; - height: 100vh; - text-align: center; - -} - -.astronautUfoImage { - width: 100%; - padding: 16px; - margin: 8px; - font-size: 12px; -} - -.cardActions { - display: flex; - align-items: center; - justify-content: center; -} - -.margin16 { - margin: 16px; -}