@greatapps/common 1.1.558 → 1.1.559
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,20 +1,26 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { IconHelp, IconBulb } from "@tabler/icons-react";
|
|
4
|
-
|
|
5
|
-
{
|
|
6
|
-
label: "Central de ajuda",
|
|
7
|
-
icon: IconHelp,
|
|
8
|
-
href: "https://ajuda.greatsoftwares.com.br/pt-br/"
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
label: "Enviar sugest\xF5es",
|
|
12
|
-
icon: IconBulb,
|
|
13
|
-
href: "https://ideias.greatpages.com.br/b/y0geg1ve/feature-ideas"
|
|
14
|
-
}
|
|
15
|
-
];
|
|
4
|
+
import { useWhitelabel } from "../../../providers/whitelabel.provider";
|
|
16
5
|
function BottomLinks() {
|
|
17
|
-
|
|
6
|
+
const { whitelabel } = useWhitelabel();
|
|
7
|
+
const helpUrl = whitelabel?.url_help || "https://ajuda.greatsoftwares.com.br/pt-br/";
|
|
8
|
+
const isMainWhitelabel = !whitelabel || whitelabel.id === 1;
|
|
9
|
+
const links = [
|
|
10
|
+
{
|
|
11
|
+
label: "Central de ajuda",
|
|
12
|
+
icon: IconHelp,
|
|
13
|
+
href: helpUrl
|
|
14
|
+
},
|
|
15
|
+
...!isMainWhitelabel ? [
|
|
16
|
+
{
|
|
17
|
+
label: "Enviar sugest\xF5es",
|
|
18
|
+
icon: IconBulb,
|
|
19
|
+
href: "https://ideias.greatpages.com.br/b/y0geg1ve/feature-ideas"
|
|
20
|
+
}
|
|
21
|
+
] : []
|
|
22
|
+
];
|
|
23
|
+
return /* @__PURE__ */ jsx("div", { className: "flex flex-col", children: links.map((link) => /* @__PURE__ */ jsxs(
|
|
18
24
|
"a",
|
|
19
25
|
{
|
|
20
26
|
href: link.href,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/navigation/subcomponents/BottomLinks.tsx"],"sourcesContent":["'use client';\n\nimport { IconHelp, IconBulb } from '@tabler/icons-react';\n\
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/navigation/subcomponents/BottomLinks.tsx"],"sourcesContent":["'use client';\n\nimport { IconHelp, IconBulb } from '@tabler/icons-react';\nimport { useWhitelabel } from '../../../providers/whitelabel.provider';\n\nexport function BottomLinks() {\n const { whitelabel } = useWhitelabel();\n\n const helpUrl = whitelabel?.url_help || 'https://ajuda.greatsoftwares.com.br/pt-br/';\n const isMainWhitelabel = !whitelabel || whitelabel.id === 1;\n\n const links = [\n {\n label: 'Central de ajuda',\n icon: IconHelp,\n href: helpUrl,\n },\n ...(!isMainWhitelabel\n ? [\n {\n label: 'Enviar sugestões',\n icon: IconBulb,\n href: 'https://ideias.greatpages.com.br/b/y0geg1ve/feature-ideas',\n },\n ]\n : []),\n ];\n\n return (\n <div className=\"flex flex-col\">\n {links.map((link) => (\n <a\n key={link.label}\n href={link.href}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"rounded-md flex items-center gap-2 p-3 cursor-pointer transition-colors no-underline bg-white hover:bg-gray-100 active:bg-gray-50\"\n >\n <link.icon size={20} className=\"text-gray-400\" />\n <span className=\"paragraph-small-medium text-gray-500\">\n {link.label}\n </span>\n </a>\n ))}\n </div>\n );\n}\n"],"mappings":";AA+BQ,SAOE,KAPF;AA7BR,SAAS,UAAU,gBAAgB;AACnC,SAAS,qBAAqB;AAEvB,SAAS,cAAc;AAC5B,QAAM,EAAE,WAAW,IAAI,cAAc;AAErC,QAAM,UAAU,YAAY,YAAY;AACxC,QAAM,mBAAmB,CAAC,cAAc,WAAW,OAAO;AAE1D,QAAM,QAAQ;AAAA,IACZ;AAAA,MACE,OAAO;AAAA,MACP,MAAM;AAAA,MACN,MAAM;AAAA,IACR;AAAA,IACA,GAAI,CAAC,mBACD;AAAA,MACE;AAAA,QACE,OAAO;AAAA,QACP,MAAM;AAAA,QACN,MAAM;AAAA,MACR;AAAA,IACF,IACA,CAAC;AAAA,EACP;AAEA,SACE,oBAAC,SAAI,WAAU,iBACZ,gBAAM,IAAI,CAAC,SACV;AAAA,IAAC;AAAA;AAAA,MAEC,MAAM,KAAK;AAAA,MACX,QAAO;AAAA,MACP,KAAI;AAAA,MACJ,WAAU;AAAA,MAEV;AAAA,4BAAC,KAAK,MAAL,EAAU,MAAM,IAAI,WAAU,iBAAgB;AAAA,QAC/C,oBAAC,UAAK,WAAU,wCACb,eAAK,OACR;AAAA;AAAA;AAAA,IATK,KAAK;AAAA,EAUZ,CACD,GACH;AAEJ;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,24 +1,34 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { IconHelp, IconBulb } from '@tabler/icons-react';
|
|
4
|
-
|
|
5
|
-
const LINKS = [
|
|
6
|
-
{
|
|
7
|
-
label: 'Central de ajuda',
|
|
8
|
-
icon: IconHelp,
|
|
9
|
-
href: 'https://ajuda.greatsoftwares.com.br/pt-br/',
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
label: 'Enviar sugestões',
|
|
13
|
-
icon: IconBulb,
|
|
14
|
-
href: 'https://ideias.greatpages.com.br/b/y0geg1ve/feature-ideas',
|
|
15
|
-
},
|
|
16
|
-
] as const;
|
|
4
|
+
import { useWhitelabel } from '../../../providers/whitelabel.provider';
|
|
17
5
|
|
|
18
6
|
export function BottomLinks() {
|
|
7
|
+
const { whitelabel } = useWhitelabel();
|
|
8
|
+
|
|
9
|
+
const helpUrl = whitelabel?.url_help || 'https://ajuda.greatsoftwares.com.br/pt-br/';
|
|
10
|
+
const isMainWhitelabel = !whitelabel || whitelabel.id === 1;
|
|
11
|
+
|
|
12
|
+
const links = [
|
|
13
|
+
{
|
|
14
|
+
label: 'Central de ajuda',
|
|
15
|
+
icon: IconHelp,
|
|
16
|
+
href: helpUrl,
|
|
17
|
+
},
|
|
18
|
+
...(!isMainWhitelabel
|
|
19
|
+
? [
|
|
20
|
+
{
|
|
21
|
+
label: 'Enviar sugestões',
|
|
22
|
+
icon: IconBulb,
|
|
23
|
+
href: 'https://ideias.greatpages.com.br/b/y0geg1ve/feature-ideas',
|
|
24
|
+
},
|
|
25
|
+
]
|
|
26
|
+
: []),
|
|
27
|
+
];
|
|
28
|
+
|
|
19
29
|
return (
|
|
20
30
|
<div className="flex flex-col">
|
|
21
|
-
{
|
|
31
|
+
{links.map((link) => (
|
|
22
32
|
<a
|
|
23
33
|
key={link.label}
|
|
24
34
|
href={link.href}
|