Skip to content

Commit d1d0f40

Browse files
authored
Merge pull request #861 from OpenSignLabs/resolve_stage
2 parents d46cb7d + ad4a9e7 commit d1d0f40

File tree

4 files changed

+59
-17
lines changed

4 files changed

+59
-17
lines changed

apps/OpenSign/src/components/opensigndrive/DriveBody.js

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import React, { useState, useEffect, useRef } from "react";
2-
import folder from "../../assets/images/folder.png";
32
import "../../styles/opensigndrive.css";
4-
import pdfLogo from "../../assets/images/pdf3.png";
53
import axios from "axios";
64
import * as ContextMenu from "@radix-ui/react-context-menu";
75
import { saveAs } from "file-saver";
@@ -336,7 +334,7 @@ function DriveBody(props) {
336334
) : (
337335
<tr onClick={() => checkPdfStatus(data)}>
338336
<td className="cursor-pointer flex items-center">
339-
<i className="fa fa-file-pdf mr-[8px] text-[26px] text-[#ed4d0e]"></i>
337+
<i className="fa-solid fa-file-lines mr-[8px] text-[26px] text-neutral"></i>
340338
<span className="text-[12px] font-medium">{data.Name}</span>
341339
</td>
342340
<td>{createddate}</td>
@@ -348,23 +346,27 @@ function DriveBody(props) {
348346
e.stopPropagation();
349347
handleMenuItemClick("Download", data);
350348
}}
351-
className="fa fa-download mr-[8px] text-[#ed280e]"
349+
className="fa fa-download mr-[8px] op-text-primary"
352350
aria-hidden="true"
353351
></i>
354352
</td>
355353
</tr>
356354
)
357355
) : listType === "list" && data.Type === "Folder" ? (
358-
<div key={ind} className="icon-container">
356+
<div key={ind} className="relative w-[100px] h-[100px] mx-2 my-3">
359357
<ContextMenu.Root>
360-
<ContextMenu.Trigger className="ContextMenuTrigger">
358+
<ContextMenu.Trigger className="flex flex-col justify-center items-center">
361359
<div data-tut={props.dataTutSeventh}>
362-
<img
360+
{/* <img
363361
alt="folder"
364362
onClick={() => handleOnclikFolder(data)}
365363
src={folder}
366364
className="w-full h-full"
367-
/>
365+
/> */}
366+
<i
367+
className="fa-solid fa-folder text-[100px] mx-auto text-secondary"
368+
onClick={() => handleOnclikFolder(data)}
369+
></i>
368370
{rename === data.objectId ? (
369371
<input
370372
onFocus={() => {
@@ -412,15 +414,20 @@ function DriveBody(props) {
412414
<HoverCard.Trigger asChild>
413415
<div>
414416
<ContextMenu.Root>
415-
<div className="icon-container">
416-
<ContextMenu.Trigger className="ContextMenuTrigger">
417-
<img
417+
<div className="relative w-[100px] h-[100px] mx-2 my-3">
418+
<ContextMenu.Trigger className="flex flex-col justify-center items-center">
419+
{/* <img
418420
alt="PDF"
419421
className="w-full h-full"
420422
src={pdfLogo}
421423
onClick={() => checkPdfStatus(data)}
424+
/> */}
425+
<i
426+
className="fa-solid fa-file-lines text-[100px] text-neutral"
427+
onClick={() => checkPdfStatus(data)}
422428
data-tut={props.dataTutSixth}
423-
/>
429+
></i>
430+
424431
{rename === data.objectId ? (
425432
<input
426433
autoFocus={true}

apps/OpenSign/src/index.css

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,38 @@ body {
1515
-ms-overflow-style: none; /* IE and Edge */
1616
scrollbar-width: none; /* Firefox */
1717
}
18+
19+
/* below css class replace bootstrap background color with daisy */
20+
.op-bg-primary {
21+
@apply bg-primary;
22+
}
23+
.op-bg-secondary {
24+
@apply bg-secondary;
25+
}
26+
.op-bg-info {
27+
@apply bg-info;
28+
}
29+
.op-bg-success{
30+
@apply bg-success;
31+
}
32+
.op-bg-warning {
33+
@apply bg-warning;
34+
}
35+
36+
/* below css class replace bootstrap text color with daisy */
37+
.op-text-primary {
38+
@apply text-primary;
39+
}
40+
.op-text-secondary {
41+
@apply text-secondary;
42+
}
43+
.op-text-info {
44+
@apply text-info;
45+
}
46+
.op-text-success{
47+
@apply text-success;
48+
}
49+
.op-text-warning {
50+
@apply text-warning;
51+
}
52+

apps/OpenSign/src/pages/GenerateToken.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ function GenerateToken() {
203203

204204
<ModalUi
205205
isOpen={isModal}
206-
title={"Regenerate Token"}
206+
title={apiToken ? "Regenerate Token" : "Generate Token"}
207207
handleClose={handleModal}
208208
>
209209
<div className="m-[20px]">

apps/OpenSign/src/primitives/GetReportDisplay.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -951,15 +951,15 @@ const ReportTable = (props) => {
951951
<i
952952
data-tut="reactourFirst"
953953
onClick={() => navigate("/form/template")}
954-
className="fa-solid fa-square-plus text-accent text-[25px]"
954+
className="fa-solid fa-square-plus text-accent text-[40px]"
955955
></i>
956956
)}
957957
{props.form && (
958958
<div
959959
className="cursor-pointer"
960960
onClick={() => handleContactFormModal()}
961961
>
962-
<i className="fa-solid fa-square-plus text-accent text-[25px]"></i>
962+
<i className="fa-solid fa-square-plus text-accent text-[40px]"></i>
963963
</div>
964964
)}
965965
</div>
@@ -1000,7 +1000,7 @@ const ReportTable = (props) => {
10001000
<td className="px-4 py-2 font-semibold">
10011001
{item?.Name}{" "}
10021002
</td>
1003-
<td className="px-4 py-2">{item?.Email || "-"}</td>
1003+
<td className="px-4 py-2 ">{item?.Email || "-"}</td>
10041004
<td className="px-4 py-2">{item?.Phone || "-"}</td>
10051005
<td className="px-3 py-2 text-white grid grid-cols-2">
10061006
{props.actions?.length > 0 &&
@@ -1053,7 +1053,7 @@ const ReportTable = (props) => {
10531053
{startIndex + index + 1}
10541054
</th>
10551055
)}
1056-
<td className="px-4 py-2 font-semibold min-w-56">
1056+
<td className="px-4 py-2 font-semibold min-w-56 max-w-56">
10571057
{item?.Name}{" "}
10581058
</td>
10591059
{props.heading.includes("Note") && (

0 commit comments

Comments
 (0)