@ichaingo/footer 1.5.7-beta → 1.5.8
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.
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/package.json +5 -5
- package/src/index.tsx +3 -3
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,MAAM,CAAC,OAAO,UAAU,MAAM,sBAqD7B"}
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as e, jsxs as l } from "react/jsx-runtime";
|
|
2
2
|
import c from "@ichaingo/image";
|
|
3
3
|
import a from "@ichaingo/link";
|
|
4
|
-
import {
|
|
4
|
+
import { useLocale as o } from "next-intl";
|
|
5
5
|
import t from "@ichaingo/translation";
|
|
6
6
|
import { Mail as i } from "lucide-react";
|
|
7
|
-
|
|
8
|
-
const r =
|
|
7
|
+
function h() {
|
|
8
|
+
const r = o();
|
|
9
9
|
return /* @__PURE__ */ e("footer", { className: "md:bg-module text-xs w-full p-3 mt-3", children: /* @__PURE__ */ l("div", { className: "max-w-300 flex flex-col md:flex-row justify-center mx-auto w-full py-3", children: [
|
|
10
10
|
/* @__PURE__ */ l("div", { className: "w-full md:w-1/2 flex flex-col py-3 md:py-0 gap-3 md:gap-0 justify-between", children: [
|
|
11
11
|
/* @__PURE__ */ e(c, { src: `${process.env.NEXT_PUBLIC_CDN_URL}/uploads/2025/11/26/6926f275c68ed.png`, width: 116, height: 32, objectFit: "contain" }),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ichaingo/footer",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"lucide-react": "0.539.0",
|
|
25
25
|
"react": "19.1.1",
|
|
26
|
-
"
|
|
27
|
-
"@ichaingo/
|
|
28
|
-
"@ichaingo/
|
|
29
|
-
"@ichaingo/translation": "1.5.
|
|
26
|
+
"next-intl": "4.6.1",
|
|
27
|
+
"@ichaingo/image": "1.5.8",
|
|
28
|
+
"@ichaingo/link": "1.5.8",
|
|
29
|
+
"@ichaingo/translation": "1.5.8"
|
|
30
30
|
}
|
|
31
31
|
}
|
package/src/index.tsx
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import ImageBar from '@ichaingo/image';
|
|
3
3
|
import LinkBar from '@ichaingo/link';
|
|
4
|
-
import {
|
|
4
|
+
import { useLocale } from 'next-intl';
|
|
5
5
|
import Translation from '@ichaingo/translation';
|
|
6
6
|
import { Mail } from 'lucide-react';
|
|
7
|
-
export default
|
|
8
|
-
const locale =
|
|
7
|
+
export default function Footer() {
|
|
8
|
+
const locale = useLocale();
|
|
9
9
|
return (
|
|
10
10
|
<footer className='md:bg-module text-xs w-full p-3 mt-3'>
|
|
11
11
|
<div className="max-w-300 flex flex-col md:flex-row justify-center mx-auto w-full py-3">
|