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 () => {
|
||||
try {
|
||||
let res = await api.get('/api/user/accounts');
|
||||
|
|
@ -368,7 +373,7 @@ const CommonNav: React.FC<AccountNavProps> = ({
|
|||
|
||||
<div className="border-b border-gray-100">
|
||||
<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"
|
||||
>
|
||||
<div className="flex items-center">
|
||||
|
|
|
|||
|
|
@ -120,7 +120,7 @@ const SendForSign: React.FC<Props> = ({ showSideBar }) => {
|
|||
px-2 py-2.5
|
||||
overflow-hidden
|
||||
transition-all duration-300 ease-in-out w-full
|
||||
${showSideBar ? "rounded-l" : "rounded"}
|
||||
rounded
|
||||
`}
|
||||
style={{ whiteSpace: "nowrap" }}
|
||||
>
|
||||
|
|
@ -131,7 +131,7 @@ const SendForSign: React.FC<Props> = ({ showSideBar }) => {
|
|||
)}
|
||||
</div>
|
||||
|
||||
{showSideBar && (
|
||||
{/* {showSideBar && (
|
||||
<div
|
||||
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 }}
|
||||
|
|
@ -142,7 +142,7 @@ const SendForSign: React.FC<Props> = ({ showSideBar }) => {
|
|||
}`}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
)} */}
|
||||
</div>
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -245,7 +245,7 @@ const DocumentContainer: React.FC<DocumentContainerProps> = ({ transactionSaving
|
|||
|
||||
let tagsData = groupByRecipientId(updatedTags);
|
||||
await sendTagsToRecipients(tagsData, accountId, transactionId);
|
||||
return
|
||||
// return
|
||||
// SENDING Transaction - START
|
||||
if (!save) {
|
||||
const res = await api.put(`/api/accounts/${accountId}/${transactionTemplateToggle}/${transactionId}`, { status: "SENT" })
|
||||
|
|
|
|||
Loading…
Reference in New Issue