updated note component

This commit is contained in:
Ren Amamiya
2023-03-31 18:38:20 +07:00
parent 5b88b335a1
commit 8e66af972d
12 changed files with 43 additions and 34 deletions

View File

@@ -1,7 +1,7 @@
import { ArrowLeftIcon, ArrowRightIcon, ReloadIcon } from '@radix-ui/react-icons';
import { platform } from '@tauri-apps/api/os';
import { useRouter } from 'next/router';
import { useLayoutEffect, useState } from 'react';
import { useEffect, useState } from 'react';
export default function AppActions() {
const router = useRouter();
@@ -19,7 +19,7 @@ export default function AppActions() {
router.reload();
};
useLayoutEffect(() => {
useEffect(() => {
const getPlatform = async () => {
const result = await platform();
setOS(result);

View File

@@ -1,4 +1,3 @@
import { PlusIcon } from '@radix-ui/react-icons';
import dynamic from 'next/dynamic';
const AppActions = dynamic(() => import('@components/appHeader/actions'), {