mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-08 22:45:49 +01:00
Add ConfigChanger indicator
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Loader, Select } from '@mantine/core';
|
||||
import { Center, Loader, Select, Tooltip } from '@mantine/core';
|
||||
import { setCookies } from 'cookies-next';
|
||||
import { useEffect, useState } from 'react';
|
||||
import { useConfig } from '../../tools/state';
|
||||
@@ -12,7 +12,13 @@ export default function ConfigChanger() {
|
||||
}, [config]);
|
||||
// If configlist is empty, return a loading indicator
|
||||
if (configList.length === 0) {
|
||||
return <Loader />;
|
||||
return (
|
||||
<Center>
|
||||
<Tooltip label={"Loading your configs. This doesn't load in vercel."}>
|
||||
<Loader />
|
||||
</Tooltip>
|
||||
</Center>
|
||||
);
|
||||
}
|
||||
return (
|
||||
<Select
|
||||
|
||||
Reference in New Issue
Block a user