namirasoft-site-react 1.2.17 → 1.2.21
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/App.js +2 -4
- package/dist/App.js.map +1 -1
- package/dist/components/NSFooter.module.css +1 -1
- package/dist/components/NSInputSearch.module.css +8 -6
- package/dist/components/NSLayout.d.ts +1 -0
- package/dist/components/NSLayout.js +1 -1
- package/dist/components/NSLayout.js.map +1 -1
- package/dist/components/NSLinkGreen.js +2 -2
- package/dist/components/NSLinkGreen.js.map +1 -1
- package/dist/components/NSLinkRed.js +2 -2
- package/dist/components/NSLinkRed.js.map +1 -1
- package/package.json +3 -3
- package/src/App.tsx +4 -7
- package/src/components/NSFooter.module.css +1 -1
- package/src/components/NSInputSearch.module.css +8 -6
- package/src/components/NSLayout.tsx +2 -0
- package/src/components/NSLinkGreen.tsx +8 -6
- package/src/components/NSLinkRed.tsx +8 -6
- package/namirasoft-site-react-npm-package - Shortcut.lnk +0 -0
package/dist/App.js
CHANGED
|
@@ -18,9 +18,7 @@ import { NSInputPhone } from './components/NSInputPhone';
|
|
|
18
18
|
import { NSButtonGreen } from './components/NSButtonGreen';
|
|
19
19
|
import { NSButtonRed } from './components/NSButtonRed';
|
|
20
20
|
import { NSSelectBox } from './components/NSSelectBox';
|
|
21
|
-
import { NSLinkGreen } from './
|
|
22
|
-
import { NSLinkRed } from './components/NSLinkRed';
|
|
23
|
-
import { NSPagination } from './components/NSPagination';
|
|
21
|
+
import { NSLinkGreen, NSLinkRed } from './main';
|
|
24
22
|
export function App() {
|
|
25
23
|
const options = [
|
|
26
24
|
{
|
|
@@ -44,6 +42,6 @@ export function App() {
|
|
|
44
42
|
desc: 'Test4',
|
|
45
43
|
},
|
|
46
44
|
];
|
|
47
|
-
return (_jsxs("div", Object.assign({ className: "App" }, { children: [_jsx(NSHeader, { scope: 'test', name: 'test', logo: '' }), _jsxs("div", Object.assign({ className: 'my-4' }, { children: [_jsx(NSInputText, { title: 'Text' }), _jsx(NSInputInteger, { title: 'Integer' }), _jsx(NSInputFloat, { title: 'Floating Point' }), _jsx(NSInputPrice, { title: 'Price' }), _jsx(NSInputDate, { title: 'Date' }), _jsx(NSInputTime, { title: 'Time' }), _jsx(NSInputDuration, { title: 'Duration' }), _jsx(NSInputString, { title: 'String' }), _jsx(NSInputIP, { title: 'IP' }), _jsx(NSInputEmail, { title: 'Email' }), _jsx(NSInputSearch, { title: 'Search' }), _jsx(NSInputPhone, { title: 'Phone' }), _jsx(NSSelectBox, { title: "t", options: options }), _jsx(NSButtonGreen, { title: 'Save', onClick: () => { } }), _jsx(NSButtonRed, { title: 'Delete', onClick: () => { } }), _jsx(NSLinkGreen, { title:
|
|
45
|
+
return (_jsxs("div", Object.assign({ className: "App" }, { children: [_jsx(NSHeader, { scope: 'test', name: 'test', logo: '' }), _jsxs("div", Object.assign({ className: 'my-4 container' }, { children: [_jsx(NSInputText, { title: 'Text' }), _jsx(NSInputInteger, { title: 'Integer' }), _jsx(NSInputFloat, { title: 'Floating Point' }), _jsx(NSInputPrice, { title: 'Price' }), _jsx(NSInputDate, { title: 'Date' }), _jsx(NSInputTime, { title: 'Time' }), _jsx(NSInputDuration, { title: 'Duration' }), _jsx(NSInputString, { title: 'String' }), _jsx(NSInputIP, { title: 'IP' }), _jsx(NSInputEmail, { title: 'Email' }), _jsx(NSInputSearch, { title: 'Search' }), _jsx(NSInputPhone, { title: 'Phone' }), _jsx(NSSelectBox, { title: "t", options: options }), _jsx(NSButtonGreen, { title: 'Save', onClick: () => { } }), _jsx(NSButtonRed, { title: 'Delete', onClick: () => { } }), _jsx(NSLinkGreen, { title: 'NSLinkGreen', href: '/' }), _jsx(NSLinkRed, { title: 'NSLinkRed', href: '/' })] })), _jsx(NSFooter, { scope: 'test', name: 'test', logo: '' })] })));
|
|
48
46
|
}
|
|
49
47
|
//# sourceMappingURL=App.js.map
|
package/dist/App.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"App.js","sourceRoot":"","sources":["../src/App.tsx"],"names":[],"mappings":";AAAA,OAAO,WAAW,CAAC;AACnB,OAAO,sCAAsC,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"App.js","sourceRoot":"","sources":["../src/App.tsx"],"names":[],"mappings":";AAAA,OAAO,WAAW,CAAC;AACnB,OAAO,sCAAsC,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,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,CAAC"}
|
|
@@ -1,23 +1,25 @@
|
|
|
1
|
-
.ns_input_form{
|
|
1
|
+
.ns_input_form {
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 326px;
|
|
5
5
|
color: #fff;
|
|
6
|
-
position: relative;
|
|
7
6
|
max-width: 100%;
|
|
7
|
+
position: relative;
|
|
8
8
|
}
|
|
9
|
-
|
|
9
|
+
|
|
10
|
+
.ns_input {
|
|
10
11
|
border-radius: 8px;
|
|
11
12
|
padding: 10px 12px;
|
|
12
13
|
font-size: 16px;
|
|
13
14
|
font-weight: 400;
|
|
14
15
|
}
|
|
15
|
-
|
|
16
|
+
|
|
17
|
+
.ns_input_icon {
|
|
16
18
|
position: absolute;
|
|
17
19
|
right: 20px;
|
|
18
|
-
top:
|
|
19
|
-
z-index: 1;
|
|
20
|
+
top: 45%;
|
|
20
21
|
}
|
|
22
|
+
|
|
21
23
|
.ns_input_title {
|
|
22
24
|
font-size: 16px;
|
|
23
25
|
font-weight: 400;
|
|
@@ -4,7 +4,7 @@ import { NSHeader } from './NSHeader';
|
|
|
4
4
|
import { NSFooter } from './NSFooter';
|
|
5
5
|
export class NSLayout extends Component {
|
|
6
6
|
render() {
|
|
7
|
-
return (_jsxs("div", Object.assign({ className: "d-flex flex-column text-center text-white" }, { children: [_jsx(NSHeader, { scope: this.props.scope, name: "Header", logo: this.props.logo }),
|
|
7
|
+
return (_jsxs("div", Object.assign({ className: "d-flex flex-column text-center text-white" }, { children: [_jsx(NSHeader, { scope: this.props.scope, name: "Header", logo: this.props.logo }), _jsxs("div", { children: [_jsx("h1", { children: this.props.title }), _jsx("h4", Object.assign({ className: "page-description" }, { children: this.props.description }))] }), _jsx("main", { children: this.props.children }), _jsx(NSFooter, { scope: this.props.scope, name: "Footer", logo: this.props.logo })] })));
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
//# sourceMappingURL=NSLayout.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSLayout.js","sourceRoot":"","sources":["../../src/components/NSLayout.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAa,MAAM,OAAO,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"NSLayout.js","sourceRoot":"","sources":["../../src/components/NSLayout.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAa,MAAM,OAAO,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAWtC,MAAM,OAAO,QAAS,SAAQ,SAAiB;IAElC,MAAM;QAEX,OAAO,CACH,6BAAK,SAAS,EAAC,2CAA2C,iBACtD,KAAC,QAAQ,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,GAAI,EAC1E,0BACI,uBAAK,IAAI,CAAC,KAAK,CAAC,KAAK,GAAM,EAC3B,2BAAI,SAAS,EAAC,kBAAkB,gBAAE,IAAI,CAAC,KAAK,CAAC,WAAW,IAAM,IAC5D,EACN,yBACK,IAAI,CAAC,KAAK,CAAC,QAAQ,GACjB,EACP,KAAC,QAAQ,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,GAAI,KACvE,CACV,CAAC;IACN,CAAC;CACJ"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import Style from "./NSLinkGreen.module.css";
|
|
3
3
|
import React from "react";
|
|
4
|
-
import { Link } from "react-router-dom";
|
|
4
|
+
import { BrowserRouter, Link } from "react-router-dom";
|
|
5
5
|
export class NSLinkGreen extends React.Component {
|
|
6
6
|
constructor(props) {
|
|
7
7
|
super(props);
|
|
@@ -14,7 +14,7 @@ export class NSLinkGreen extends React.Component {
|
|
|
14
14
|
this.setState({ href });
|
|
15
15
|
}
|
|
16
16
|
render() {
|
|
17
|
-
return (_jsx(Link, Object.assign({ className: "text-white text-decoration-none", to: this.state.href }, { children: _jsx("div", Object.assign({ className: Style.ns_link_green }, { children: this.state.title })) })));
|
|
17
|
+
return (_jsx(BrowserRouter, { children: _jsx(Link, Object.assign({ className: "text-white text-decoration-none", to: this.state.href }, { children: _jsx("div", Object.assign({ className: Style.ns_link_green }, { children: this.state.title })) })) }));
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
//# sourceMappingURL=NSLinkGreen.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSLinkGreen.js","sourceRoot":"","sources":["../../src/components/NSLinkGreen.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,0BAA0B,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"NSLinkGreen.js","sourceRoot":"","sources":["../../src/components/NSLinkGreen.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,0BAA0B,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAcvD,MAAM,OAAO,WAAY,SAAQ,KAAK,CAAC,SAAyB;IAE5D,YAAY,KAAa;QAErB,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC;IAC1D,CAAC;IACD,QAAQ,CAAC,KAAa;QAElB,IAAI,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;IAC7B,CAAC;IACD,OAAO,CAAC,IAAY;QAEhB,IAAI,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;IAC5B,CAAC;IACQ,MAAM;QAEX,OAAO,CACH,KAAC,aAAa,cACV,KAAC,IAAI,kBAAC,SAAS,EAAC,iCAAiC,EAAC,EAAE,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,gBACjE,4BAAK,SAAS,EAAE,KAAK,CAAC,aAAa,gBAC9B,IAAI,CAAC,KAAK,CAAC,KAAK,IACf,IACH,GACK,CACnB,CAAA;IACL,CAAC;CACJ"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import Style from "./NSLinkRed.module.css";
|
|
3
3
|
import React from "react";
|
|
4
|
-
import { Link } from "react-router-dom";
|
|
4
|
+
import { BrowserRouter, Link } from "react-router-dom";
|
|
5
5
|
export class NSLinkRed extends React.Component {
|
|
6
6
|
constructor(props) {
|
|
7
7
|
super(props);
|
|
@@ -14,7 +14,7 @@ export class NSLinkRed extends React.Component {
|
|
|
14
14
|
this.setState({ href });
|
|
15
15
|
}
|
|
16
16
|
render() {
|
|
17
|
-
return (_jsx(Link, Object.assign({ className: "text-white text-decoration-none", to: this.state.href }, { children: _jsx("div", Object.assign({ className: Style.ns_link_red }, { children: this.state.title })) })));
|
|
17
|
+
return (_jsx(BrowserRouter, { children: _jsx(Link, Object.assign({ className: "text-white text-decoration-none", to: this.state.href }, { children: _jsx("div", Object.assign({ className: Style.ns_link_red }, { children: this.state.title })) })) }));
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
//# sourceMappingURL=NSLinkRed.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSLinkRed.js","sourceRoot":"","sources":["../../src/components/NSLinkRed.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,wBAAwB,CAAC;AAC3C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"NSLinkRed.js","sourceRoot":"","sources":["../../src/components/NSLinkRed.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,wBAAwB,CAAC;AAC3C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAcvD,MAAM,OAAO,SAAU,SAAQ,KAAK,CAAC,SAAyB;IAE1D,YAAY,KAAa;QAErB,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC;IAC1D,CAAC;IACD,QAAQ,CAAC,KAAa;QAElB,IAAI,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;IAC7B,CAAC;IACD,OAAO,CAAC,IAAY;QAEhB,IAAI,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;IAC5B,CAAC;IACQ,MAAM;QAEX,OAAO,CACH,KAAC,aAAa,cACV,KAAC,IAAI,kBAAC,SAAS,EAAC,iCAAiC,EAAC,EAAE,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,gBACjE,4BAAK,SAAS,EAAE,KAAK,CAAC,WAAW,gBAC5B,IAAI,CAAC,KAAK,CAAC,KAAK,IACf,IACH,GACK,CACnB,CAAA;IACL,CAAC;CACJ"}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "namirasoft-site-react",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.21",
|
|
4
4
|
"main": "./dist/main.js",
|
|
5
5
|
"types": "./dist/main.d.ts",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@types/node": "^20.11.
|
|
7
|
+
"@types/node": "^20.11.5",
|
|
8
8
|
"@types/react": "^18.2.48",
|
|
9
9
|
"@types/react-dom": "^18.2.18",
|
|
10
10
|
"antd": "^5.13.1",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"path-browserify": "^1.0.1",
|
|
16
16
|
"react": "^18.2.0",
|
|
17
17
|
"react-app-rewired": "^2.2.1",
|
|
18
|
-
"react-bootstrap": "^2.
|
|
18
|
+
"react-bootstrap": "^2.10.0",
|
|
19
19
|
"react-dom": "^18.2.0",
|
|
20
20
|
"react-phone-input-2": "^2.15.1",
|
|
21
21
|
"react-phone-number-input": "^3.3.9",
|
package/src/App.tsx
CHANGED
|
@@ -17,10 +17,8 @@ import { NSInputPhone } from './components/NSInputPhone';
|
|
|
17
17
|
import { NSButtonGreen } from './components/NSButtonGreen';
|
|
18
18
|
import { NSButtonRed } from './components/NSButtonRed';
|
|
19
19
|
import { NSSelectBox } from './components/NSSelectBox';
|
|
20
|
-
import { NSLinkGreen } from './components/NSLinkGreen';
|
|
21
|
-
import { NSLinkRed } from './components/NSLinkRed';
|
|
22
|
-
import { NSPagination } from './components/NSPagination';
|
|
23
20
|
import type { SelectProps } from 'antd';
|
|
21
|
+
import { NSLinkGreen, NSLinkRed } from './main';
|
|
24
22
|
|
|
25
23
|
export function App()
|
|
26
24
|
{
|
|
@@ -50,7 +48,7 @@ export function App()
|
|
|
50
48
|
return (
|
|
51
49
|
<div className="App">
|
|
52
50
|
<NSHeader scope='test' name='test' logo='' />
|
|
53
|
-
<div className='my-4'>
|
|
51
|
+
<div className='my-4 container'>
|
|
54
52
|
<NSInputText title='Text' />
|
|
55
53
|
<NSInputInteger title='Integer' />
|
|
56
54
|
<NSInputFloat title='Floating Point' />
|
|
@@ -66,9 +64,8 @@ export function App()
|
|
|
66
64
|
<NSSelectBox title="t" options={options} />
|
|
67
65
|
<NSButtonGreen title='Save' onClick={() => { }} />
|
|
68
66
|
<NSButtonRed title='Delete' onClick={() => { }} />
|
|
69
|
-
<NSLinkGreen title=
|
|
70
|
-
<NSLinkRed title=
|
|
71
|
-
<NSPagination title='Pagination' pages={10} href='/' />
|
|
67
|
+
<NSLinkGreen title='NSLinkGreen' href='/' />
|
|
68
|
+
<NSLinkRed title='NSLinkRed' href='/' />
|
|
72
69
|
</div>
|
|
73
70
|
<NSFooter scope='test' name='test' logo='' />
|
|
74
71
|
</div>
|
|
@@ -1,23 +1,25 @@
|
|
|
1
|
-
.ns_input_form{
|
|
1
|
+
.ns_input_form {
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 326px;
|
|
5
5
|
color: #fff;
|
|
6
|
-
position: relative;
|
|
7
6
|
max-width: 100%;
|
|
7
|
+
position: relative;
|
|
8
8
|
}
|
|
9
|
-
|
|
9
|
+
|
|
10
|
+
.ns_input {
|
|
10
11
|
border-radius: 8px;
|
|
11
12
|
padding: 10px 12px;
|
|
12
13
|
font-size: 16px;
|
|
13
14
|
font-weight: 400;
|
|
14
15
|
}
|
|
15
|
-
|
|
16
|
+
|
|
17
|
+
.ns_input_icon {
|
|
16
18
|
position: absolute;
|
|
17
19
|
right: 20px;
|
|
18
|
-
top:
|
|
19
|
-
z-index: 1;
|
|
20
|
+
top: 45%;
|
|
20
21
|
}
|
|
22
|
+
|
|
21
23
|
.ns_input_title {
|
|
22
24
|
font-size: 16px;
|
|
23
25
|
font-weight: 400;
|
|
@@ -7,6 +7,7 @@ interface IProps
|
|
|
7
7
|
scope: string;
|
|
8
8
|
logo: string;
|
|
9
9
|
title: string;
|
|
10
|
+
description?: string;
|
|
10
11
|
children: ReactNode;
|
|
11
12
|
}
|
|
12
13
|
|
|
@@ -19,6 +20,7 @@ export class NSLayout extends Component<IProps>
|
|
|
19
20
|
<NSHeader scope={this.props.scope} name="Header" logo={this.props.logo} />
|
|
20
21
|
<div>
|
|
21
22
|
<h1>{this.props.title}</h1>
|
|
23
|
+
<h4 className="page-description">{this.props.description}</h4>
|
|
22
24
|
</div>
|
|
23
25
|
<main>
|
|
24
26
|
{this.props.children}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Style from "./NSLinkGreen.module.css";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { Link } from "react-router-dom";
|
|
3
|
+
import { BrowserRouter, Link } from "react-router-dom";
|
|
4
4
|
|
|
5
5
|
interface IProps
|
|
6
6
|
{
|
|
@@ -32,11 +32,13 @@ export class NSLinkGreen extends React.Component<IProps, IState>
|
|
|
32
32
|
override render()
|
|
33
33
|
{
|
|
34
34
|
return (
|
|
35
|
-
<
|
|
36
|
-
<
|
|
37
|
-
{
|
|
38
|
-
|
|
39
|
-
|
|
35
|
+
<BrowserRouter>
|
|
36
|
+
<Link className="text-white text-decoration-none" to={this.state.href}>
|
|
37
|
+
<div className={Style.ns_link_green}>
|
|
38
|
+
{this.state.title}
|
|
39
|
+
</div>
|
|
40
|
+
</Link>
|
|
41
|
+
</BrowserRouter>
|
|
40
42
|
)
|
|
41
43
|
}
|
|
42
44
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Style from "./NSLinkRed.module.css";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { Link } from "react-router-dom";
|
|
3
|
+
import { BrowserRouter, Link } from "react-router-dom";
|
|
4
4
|
|
|
5
5
|
interface IProps
|
|
6
6
|
{
|
|
@@ -32,11 +32,13 @@ export class NSLinkRed extends React.Component<IProps, IState>
|
|
|
32
32
|
override render()
|
|
33
33
|
{
|
|
34
34
|
return (
|
|
35
|
-
<
|
|
36
|
-
<
|
|
37
|
-
{
|
|
38
|
-
|
|
39
|
-
|
|
35
|
+
<BrowserRouter>
|
|
36
|
+
<Link className="text-white text-decoration-none" to={this.state.href}>
|
|
37
|
+
<div className={Style.ns_link_red}>
|
|
38
|
+
{this.state.title}
|
|
39
|
+
</div>
|
|
40
|
+
</Link>
|
|
41
|
+
</BrowserRouter>
|
|
40
42
|
)
|
|
41
43
|
}
|
|
42
44
|
}
|
|
Binary file
|