Added Settings in Nav
This commit is contained in:
parent
e23b132d53
commit
3bb2991f72
|
|
@ -70,6 +70,11 @@ const CommonNav: React.FC<AccountNavProps> = ({
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const handleSettingsClick = () => {
|
||||||
|
setOpen(false);
|
||||||
|
navigate("/s/settings#profile-info");
|
||||||
|
}
|
||||||
|
|
||||||
const getAccountDetails = async () => {
|
const getAccountDetails = async () => {
|
||||||
try {
|
try {
|
||||||
let res = await api.get('/api/user/accounts');
|
let res = await api.get('/api/user/accounts');
|
||||||
|
|
@ -368,7 +373,7 @@ const CommonNav: React.FC<AccountNavProps> = ({
|
||||||
|
|
||||||
<div className="border-b border-gray-100">
|
<div className="border-b border-gray-100">
|
||||||
<button
|
<button
|
||||||
onClick={() => navigate("/s/settings#profile-info")}
|
onClick={handleSettingsClick}
|
||||||
className="w-full flex items-center justify-between px-4 py-3 text-sm text-gray-700 hover:bg-gray-50 transition-colors cursor-pointer"
|
className="w-full flex items-center justify-between px-4 py-3 text-sm text-gray-700 hover:bg-gray-50 transition-colors cursor-pointer"
|
||||||
>
|
>
|
||||||
<div className="flex items-center">
|
<div className="flex items-center">
|
||||||
|
|
|
||||||
|
|
@ -120,7 +120,7 @@ const SendForSign: React.FC<Props> = ({ showSideBar }) => {
|
||||||
px-2 py-2.5
|
px-2 py-2.5
|
||||||
overflow-hidden
|
overflow-hidden
|
||||||
transition-all duration-300 ease-in-out w-full
|
transition-all duration-300 ease-in-out w-full
|
||||||
${showSideBar ? "rounded-l" : "rounded"}
|
rounded
|
||||||
`}
|
`}
|
||||||
style={{ whiteSpace: "nowrap" }}
|
style={{ whiteSpace: "nowrap" }}
|
||||||
>
|
>
|
||||||
|
|
@ -131,7 +131,7 @@ const SendForSign: React.FC<Props> = ({ showSideBar }) => {
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{showSideBar && (
|
{/* {showSideBar && (
|
||||||
<div
|
<div
|
||||||
className="rounded-r btn px-2 py-2 bg-[var(--sidebarDropDownBg)] transition-all duration-300 ease-in-out flex items-center justify-center"
|
className="rounded-r btn px-2 py-2 bg-[var(--sidebarDropDownBg)] transition-all duration-300 ease-in-out flex items-center justify-center"
|
||||||
style={{ opacity: showSideBar ? 1 : 0 }}
|
style={{ opacity: showSideBar ? 1 : 0 }}
|
||||||
|
|
@ -142,7 +142,7 @@ const SendForSign: React.FC<Props> = ({ showSideBar }) => {
|
||||||
}`}
|
}`}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)} */}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -245,7 +245,7 @@ const DocumentContainer: React.FC<DocumentContainerProps> = ({ transactionSaving
|
||||||
|
|
||||||
let tagsData = groupByRecipientId(updatedTags);
|
let tagsData = groupByRecipientId(updatedTags);
|
||||||
await sendTagsToRecipients(tagsData, accountId, transactionId);
|
await sendTagsToRecipients(tagsData, accountId, transactionId);
|
||||||
return
|
// return
|
||||||
// SENDING Transaction - START
|
// SENDING Transaction - START
|
||||||
if (!save) {
|
if (!save) {
|
||||||
const res = await api.put(`/api/accounts/${accountId}/${transactionTemplateToggle}/${transactionId}`, { status: "SENT" })
|
const res = await api.put(`/api/accounts/${accountId}/${transactionTemplateToggle}/${transactionId}`, { status: "SENT" })
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue