mirror of https://github.com/BRAVO68WEB/shx.git
removed warnings
This commit is contained in:
parent
f6f612e899
commit
d0ff7da7e8
|
@ -11,7 +11,7 @@ export class Notes {
|
|||
const data = res.data.data as INote[];
|
||||
return data;
|
||||
}
|
||||
async getSingleNote(id: string, passkey: string = '') {
|
||||
async getSingleNote(id: string, passkey = '') {
|
||||
const res = await this.axios.get(`/gist/${id}`, {
|
||||
params: passkey ? { passkey } : {},
|
||||
});
|
||||
|
|
|
@ -61,7 +61,7 @@ function Page() {
|
|||
const [apiKey, setApiKey] = useState('');
|
||||
useEffect(() => {
|
||||
setApiKey(Cookies.get('apiKey') ?? '');
|
||||
});
|
||||
},[]);
|
||||
|
||||
async function onDownloadFile(url: string, filename: string) {
|
||||
try {
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
import React, { ChangeEventHandler, useEffect, useState } from 'react';
|
||||
import Button from '@/components/ui/Button';
|
||||
import Input from '@/components/ui/Input';
|
||||
import TagInput from '@/components/TagInput';
|
||||
import api from '@/api';
|
||||
import { toast } from 'react-hot-toast';
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
import Button from '@/components/ui/Button';
|
||||
import Cookies from 'js-cookie';
|
||||
import { ArrowUpRight, Copy, Edit, Trash2 } from 'lucide-react';
|
||||
import { ArrowUpRight, Copy, Trash2 } from 'lucide-react';
|
||||
import Link from 'next/link';
|
||||
import { useEffect, useState } from 'react';
|
||||
|
||||
interface NotesLitsProps {
|
||||
data: INote[];
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
'use client';
|
||||
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import React, { useState } from 'react';
|
||||
import Button from '@/components/ui/Button';
|
||||
import { Trash, Edit2, ArrowUpRight, X } from 'lucide-react';
|
||||
import URLControls from './URLControls';
|
||||
|
@ -9,7 +9,6 @@ import Input from '@/components/ui/Input';
|
|||
import api from '@/api';
|
||||
import { useRouter } from 'next/navigation';
|
||||
import { toast } from 'react-hot-toast';
|
||||
import Cookies from 'js-cookie';
|
||||
|
||||
interface ShortenUrlListProps {
|
||||
data: IUrl[];
|
||||
|
|
Loading…
Reference in New Issue