Skip to content

Commit

Permalink
Merge pull request #1573 from gtech-mulearn/dev
Browse files Browse the repository at this point in the history
DevServer
  • Loading branch information
viraka authored Jul 5, 2024
2 parents d4d9b26 + 77a6543 commit 08aa66e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
9 changes: 5 additions & 4 deletions src/modules/Dashboard/layouts/DashboardRootLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ import { fetchLocalStorage } from "@/MuLearnServices/common_functions";
const DashboardRootLayout = (props: { component?: any }) => {
const [connected, setConnected] = useState(false);

const Management: ManagementTypes[] = Object.values(managementTypes).slice(2);
const Management: ManagementTypes[] =
Object.values(managementTypes).slice(2);
useEffect(() => {
const userInfo = fetchLocalStorage<UserInfo>("userInfo");
if (userInfo) {
Expand Down Expand Up @@ -105,13 +106,13 @@ const DashboardRootLayout = (props: { component?: any }) => {
title: "Manage Organization",
hasView: true,

roles: [roles.ADMIN, roles.FELLOW, roles.ASSOCIATE],
roles: [roles.ADMIN, roles.FELLOW],
children: [
{
url: "/dashboard/affiliation",
title: "Affiliation",
hasView: true,
roles: [roles.ADMIN, roles.FELLOW, roles.ASSOCIATE]
roles: [roles.ADMIN, roles.FELLOW]
},
{
url: "/dashboard/organization-transfer",
Expand Down Expand Up @@ -233,7 +234,7 @@ const DashboardRootLayout = (props: { component?: any }) => {
url: "/dashboard/channels",
title: "Channels",
hasView: true,
roles: [roles.ADMIN, roles.FELLOW, roles.ASSOCIATE]
roles: [roles.ADMIN, roles.FELLOW]
},

{
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 6 additions & 7 deletions src/modules/Public/Donation/pages/DonationSuccess.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,6 @@ const DonationSuccess = () => {

return pdfData ? (
<>
<div ref={pdfElement} style={{
// position: "absolute",
// top: "-1000px",
}}>
<Receipt />
</div>
<div className={styles.LClandingPage}>
<Navbar />

Expand Down Expand Up @@ -126,7 +120,12 @@ const DonationSuccess = () => {
</div>
</div>
</div>

<div ref={pdfElement} style={{
position: "absolute",
top: "-1000%",
}}>
<Receipt />
</div>
<Footer />
</div>
</>
Expand Down
2 changes: 1 addition & 1 deletion src/modules/Public/Donation/pages/receipt/Receipt.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useState,useEffect } from 'react'
import logo from '../../assets/receipt/logo.svg'
import mulearn from '../../assets/receipt/learn.svg'
import mulearn from '../../assets/receipt/logo.png'
import vector from '../../assets/receipt/vector.svg'
import bigLogo from '../../assets/receipt/group-75.svg'
import styles from './Receipt.module.css';
Expand Down

0 comments on commit 08aa66e

Please sign in to comment.