File tree Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 1
1
import React , { useEffect , useState } from "react" ;
2
2
import Package from "../../package.json" ;
3
3
import axios from "axios" ;
4
+ import { NavLink } from "react-router-dom" ;
5
+ import { openInNewTab } from "../constant/Utils" ;
4
6
const Footer = ( ) => {
5
7
const [ showButton , setShowButton ] = useState ( false ) ;
6
8
const [ version , setVersion ] = useState ( "" ) ;
@@ -37,12 +39,18 @@ const Footer = () => {
37
39
} , [ ] ) ;
38
40
39
41
const appName = "OpenSign™" ;
40
-
42
+ const openUrl = ( ) => {
43
+ openInNewTab (
44
+ "https://github.com/OpenSignLabs/OpenSign/releases/tag/" + version
45
+ ) ;
46
+ } ;
41
47
return (
42
48
< >
43
49
< div className = "bg-[#222c3c] text-[#98a6ba] text-center text-[13px] py-3" >
44
50
All Rights Reserved © { new Date ( ) . getFullYear ( ) }
45
- { appName } ( version: { version ? version : `${ Package . version } ` } )
51
+ < span onClick = { openUrl } className = "hover:underline cursor-pointer" >
52
+ { appName } ( version: { version ? version : `${ Package . version } ` } )
53
+ </ span >
46
54
</ div >
47
55
< button
48
56
className = { `${
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import axios from "axios";
5
5
import "../styles/report.css" ;
6
6
import ModalUi from "./ModalUi" ;
7
7
import AppendFormInForm from "../components/AppendFormInForm" ;
8
+ import { modalSubmitBtnColor , modalCancelBtnColor } from "../constant/const" ;
8
9
const ReportTable = ( {
9
10
ReportName,
10
11
List,
@@ -342,13 +343,15 @@ const ReportTable = ({
342
343
< div className = "flex items-center mt-3 gap-2 text-white" >
343
344
< button
344
345
onClick = { ( ) => handleDelete ( item ) }
345
- className = "bg-[#1ab6ce] rounded-sm shadow-md text-[12px] font-semibold uppercase text-white py-1.5 px-3 focus:outline-none"
346
+ className = "px-4 py-1.5 text-white rounded shadow-md text-center focus:outline-none "
347
+ style = { { backgroundColor : modalSubmitBtnColor } }
346
348
>
347
349
Yes
348
350
</ button >
349
351
< button
350
352
onClick = { handleCloseDeleteModal }
351
- className = "bg-[#188ae2] rounded-sm shadow-md text-[12px] font-semibold uppercase text-white py-1.5 px-3 text-center ml-[2px] focus:outline-none"
353
+ className = "px-4 py-1.5 text-black border-[1px] border-[#ccc] shadow-md rounded focus:outline-none"
354
+ style = { { backgroundColor : modalCancelBtnColor } }
352
355
>
353
356
No
354
357
</ button >
You can’t perform that action at this time.
0 commit comments