lavoce #42

Merged
bragaz_rexita merged 18 commits from lavoce into main 2026-04-10 05:35:38 +00:00
Showing only changes of commit 75db6eb209 - Show all commits

View File

@@ -37,6 +37,15 @@ import {
} from '@ant-design/icons';
const { Text } = Typography;
const url = new URL(import.meta.env.VITE_WHATSAPP_URL);
const host = url.hostname;
const isLocal =
host === '127.0.0.1' ||
host === 'localhost' ||
host.startsWith('192.168.') ||
host.startsWith('10.') ||
host.startsWith('172.');
const allItems = [
{
@@ -226,6 +235,8 @@ const allItems = [
</Link>
),
},
...(isLocal
? [
{
key: 'whatsapp-control',
icon: <GlobalOutlined style={{ fontSize: '19px' }} />,
@@ -235,6 +246,8 @@ const allItems = [
</Link>
),
},
]
: []),
// {
// key: 'jadwal-shift',
// icon: <CalendarOutlined style={{ fontSize: '19px' }} />,