migrated icons to radix-icons

This commit is contained in:
Ren Amamiya
2023-02-24 09:16:38 +07:00
parent c45ad04d87
commit f6d687cec9
36 changed files with 47 additions and 406 deletions

View File

@@ -4,8 +4,7 @@ import OnboardingLayout from '@layouts/onboardingLayout';
import { currentUser } from '@stores/currentUser';
import EyeIcon from '@assets/icons/Eye';
import { EyeClosedIcon, EyeOpenIcon } from '@radix-ui/react-icons';
import { motion } from 'framer-motion';
import Image from 'next/image';
import { useRouter } from 'next/router';
@@ -149,7 +148,11 @@ export default function Page() {
<button
onClick={() => showNsec()}
className="group absolute right-2 top-1/2 -translate-y-1/2 transform rounded p-1 hover:bg-zinc-700">
<EyeIcon className="h-5 w-5 text-zinc-500 group-hover:text-zinc-200" />
{type === 'password' ? (
<EyeClosedIcon className="h-5 w-5 text-zinc-500 group-hover:text-zinc-200" />
) : (
<EyeOpenIcon className="h-5 w-5 text-zinc-500 group-hover:text-zinc-200" />
)}
</button>
</div>
</div>

View File

@@ -7,9 +7,9 @@ import { truncate } from '@utils/truncate';
import { currentUser } from '@stores/currentUser';
import data from '@assets/directory.json';
import CheckCircleIcon from '@assets/icons/CheckCircle';
import { useStore } from '@nanostores/react';
import { CheckCircledIcon } from '@radix-ui/react-icons';
import { motion } from 'framer-motion';
import Image from 'next/image';
import { useRouter } from 'next/router';
@@ -97,7 +97,7 @@ export default function Page() {
</div>
<div>
{follow.includes(item.npub) ? (
<CheckCircleIcon className="h-4 w-4 text-green-500" />
<CheckCircledIcon className="h-4 w-4 text-green-500" />
) : (
<></>
)}