Skip to content

Commit

Permalink
Merge pull request #26 from qridwan:22-improve-all-notes-view
Browse files Browse the repository at this point in the history
🆙 Update dependencies and remove unused imports in code files
  • Loading branch information
qridwan committed Jun 16, 2024
2 parents 9f5f40c + c1948f0 commit a39a6b3
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/components/Home/SingleNote.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
Flex,
ActionIcon,
Tooltip,
Kbd,
} from '@mantine/core';
import { noteType } from '../../types/note';
import { Link } from 'react-router-dom';
Expand Down
2 changes: 1 addition & 1 deletion src/pages/AllNotes.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Box, Container, Grid, ScrollArea, Text } from '@mantine/core';
import { Box, Container, Grid, Text } from '@mantine/core';
import { useState } from 'react';
import { useGetnotesQuery } from '../redux/features/notes/noteApi';
import NoteLists from '../components/Home/NoteLists';
Expand Down
5 changes: 2 additions & 3 deletions src/pages/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ import { hasLength, isEmail, useForm } from '@mantine/form';
import { Link, useNavigate } from "react-router-dom";
import { useLoginMutation } from '../redux/features/auth/authApi';
import { ILoginBody } from '../types/user';
import { IconCheck, IconError404, IconX } from '@tabler/icons-react';
import notify from '../utils/notify';
import { IconError404 } from '@tabler/icons-react';
import { notifications } from '@mantine/notifications';

export default function Login() {
Expand Down Expand Up @@ -54,7 +53,7 @@ export default function Login() {
<form onSubmit={form.onSubmit(async (values: ILoginBody): Promise<void> => {
const res: any = await login(values);
const isSuccess = Boolean(res?.data?.status === 'Success');
const icon = isSuccess ? <IconCheck /> : <IconX color="red" />;
// const icon = isSuccess ? <IconCheck /> : <IconX color="red" />;


if (res?.error) {
Expand Down
1 change: 0 additions & 1 deletion src/pages/NoteDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import notify from '../utils/notify';
import CardAction from '../atoms/CardAction';
import isColorLight from '../utils/isColorLight';
import { formatDate } from '../helpers/dates';
import BoiLoader from '../atoms/Loader';
import NoteDetailsSkeleton from '../components/skeletons/NoteDetails';

const NoteDetails = () => {
Expand Down
4 changes: 2 additions & 2 deletions src/pages/NotesByNotebook.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Container, Grid, ScrollArea, Text } from '@mantine/core';
import { useEffect, useState } from 'react';
import { Container, Grid, Text } from '@mantine/core';
import { useState } from 'react';
import { useGetnotesbyfolderQuery } from '../redux/features/notes/noteApi';
import NoteLists from '../components/Home/NoteLists';
import { useParams } from 'react-router-dom';
Expand Down

0 comments on commit a39a6b3

Please sign in to comment.