Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/update node modules #135

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/blockchain-certificates-issuer.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

61 changes: 61 additions & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/codeStyles/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/portals/blockchain-frontend/.prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Add files here to ignore them from prettier formatting
`# Add files here to ignore them from prettier formatting

/dist
/coverage
6 changes: 5 additions & 1 deletion src/portals/blockchain-frontend/.prettierrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
{
"singleQuote": true
"singleQuote": true,
"object": "all",
"printWidth": 120,
"semi": true,
"trailingComma": "es5"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"singleQuote": true,
"object": "all",
"printWidth": 120,
"semi": true,
"trailingComma": "es5"
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ import SignUp from '../signup/Signup';
export default function Auth() {
const [isRegister, setIsRegister] = useState(false);

const userMessage = isRegister
? 'Already have an account?'
: "Don't have an account?";
const userMessage = isRegister ? 'Already have an account?' : "Don't have an account?";
const linkContent = isRegister ? 'Login here' : 'Sign up now';
const title = isRegister ? 'Sign up' : 'Login';

Expand All @@ -25,7 +23,12 @@ export default function Auth() {
<h1 className="text-2xl font-semibold mb-6">{title}</h1>
</div>
{isRegister ? <SignUp /> : <Login />}
<p className='px-6 pt-6'>{userMessage} <a onClick={onClickHandler} className="text-blue-500 hover:underline cursor-pointer">{linkContent} </a></p>
<p className="px-6 pt-6">
{userMessage}{' '}
<a onClick={onClickHandler} className="text-blue-500 hover:underline cursor-pointer">
{linkContent}{' '}
</a>
</p>
</div>
</div>
);
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export function usePageState() {
await contract.methods.issueCertificate(walletAddress, certificateId, traineeId, UserType.Holder)
.send({ from: accounts[0] });
setIssue(true);

api.open({
key: "updatable",
message: 'Issue Certificate.',
Expand Down Expand Up @@ -163,6 +163,6 @@ export function usePageState() {
setIsLording(false);
}
}, [accounts]);
return { formik, contextHolder, courseData, trainerData, traineeData, certificateId,
return { formik, contextHolder, courseData, trainerData, traineeData, certificateId,
copyTextToClipboard, copied, isRegister, registerIssuer,url,isIssue,isLording }
};
}
Loading