First batch of ramda removals

This commit is contained in:
Alejandro Celaya
2023-11-01 10:03:09 +01:00
parent 98b2db99b3
commit 8699eaca32
8 changed files with 39 additions and 34 deletions

View File

@@ -1,6 +1,5 @@
import { faExternalLinkAlt, faPlus } from '@fortawesome/free-solid-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { isEmpty, values } from 'ramda';
import { useEffect } from 'react';
import { ExternalLink } from 'react-external-link';
import { Link, useNavigate } from 'react-router-dom';
@@ -16,8 +15,8 @@ interface HomeProps {
export const Home = ({ servers }: HomeProps) => {
const navigate = useNavigate();
const serversList = values(servers);
const hasServers = !isEmpty(serversList);
const serversList = Object.values(servers);
const hasServers = serversList.length > 0;
useEffect(() => {
// Try to redirect to the first server marked as auto-connect