mirror of
https://github.com/fallenbagel/jellyseerr.git
synced 2026-01-02 04:39:14 -05:00
refactor(icons): install and use @heroicons/react (#1438)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { CheckIcon } from '@heroicons/react/solid';
|
||||
import React from 'react';
|
||||
|
||||
interface CurrentStep {
|
||||
@@ -17,26 +18,13 @@ const SetupSteps: React.FC<CurrentStep> = ({
|
||||
}) => {
|
||||
return (
|
||||
<li className="relative md:flex-1 md:flex">
|
||||
<div className="px-6 py-4 flex items-center text-sm leading-5 font-medium space-x-4">
|
||||
<div className="flex items-center px-6 py-4 space-x-4 text-sm font-medium leading-5">
|
||||
<div
|
||||
className={`flex-shrink-0 w-10 h-10 flex items-center justify-center border-2
|
||||
${active ? 'border-indigo-600 ' : 'border-white '}
|
||||
${completed ? 'bg-indigo-600 border-indigo-600 ' : ''} rounded-full`}
|
||||
>
|
||||
{completed && (
|
||||
<svg
|
||||
className="w-6 h-6 text-white"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 20 20"
|
||||
fill="currentColor"
|
||||
>
|
||||
<path
|
||||
fill="evenodd"
|
||||
d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z"
|
||||
clip="evenodd"
|
||||
/>
|
||||
</svg>
|
||||
)}
|
||||
{completed && <CheckIcon className="w-6 h-6 text-white" />}
|
||||
{!completed && (
|
||||
<p className={active ? 'text-white' : 'text-indigo-200'}>
|
||||
{stepNumber}
|
||||
@@ -53,9 +41,9 @@ const SetupSteps: React.FC<CurrentStep> = ({
|
||||
</div>
|
||||
|
||||
{!isLastStep && (
|
||||
<div className="hidden md:block absolute top-0 right-0 h-full w-5">
|
||||
<div className="absolute top-0 right-0 hidden w-5 h-full md:block">
|
||||
<svg
|
||||
className="h-full w-full text-gray-600"
|
||||
className="w-full h-full text-gray-600"
|
||||
viewBox="0 0 22 80"
|
||||
fill="none"
|
||||
preserveAspectRatio="none"
|
||||
|
||||
Reference in New Issue
Block a user