Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
ernestjx committed Oct 27, 2024
1 parent 7db1a50 commit 557f4b9
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 271 deletions.
4 changes: 0 additions & 4 deletions app/(full-page)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ const LandingPage = () => {
</div>
</div>



<div className="py-4 px-4 mx-0 mt-8 lg:mx-8">
<div className="grid justify-content-between">
<div className="col-12 md:col-2" style={{ marginTop: '-1.5rem' }}>
Expand All @@ -81,8 +79,6 @@ const LandingPage = () => {
<a className="line-height-3 text-xl block cursor-pointer mb-2 text-700">About Us</a>
</div>



<div className="col-12 md:col-3 mt-4 md:mt-0">
<h4 className="font-medium text-2xl line-height-3 mb-3 text-900">Legal</h4>
<a className="line-height-3 text-xl block cursor-pointer mb-2 text-700">Privacy Policy</a>
Expand Down
16 changes: 0 additions & 16 deletions app/(main)/documentation/index.module.css

This file was deleted.

239 changes: 0 additions & 239 deletions app/(main)/documentation/page.tsx

This file was deleted.

8 changes: 4 additions & 4 deletions app/(main)/questions/edit/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ const EditQuestion = () => {
<div className="grid">
<div className="col-12 md:col-6 mb-5">
<TreeSelect
data-testid='tree-select-topics'
data-testid="tree-select-topics"
value={selectedTopicNodes}
onChange={(e) => setSelectedTopicNodes(e.value)}
options={topicNodes}
Expand Down Expand Up @@ -332,7 +332,7 @@ const EditQuestion = () => {
</div> */}
<div style={{ display: 'flex', justifyContent: 'flex-end' }} className="col-12">
<Button
data-testid='next-btn'
data-testid="next-btn"
label="Next"
onClick={() => {
setActiveTab(1);
Expand All @@ -353,7 +353,7 @@ const EditQuestion = () => {
</div> */}
<div style={{ display: 'flex', justifyContent: 'flex-end' }} className="col-12">
<Button
data-testid='next-btn'
data-testid="next-btn"
label="Next"
onClick={() => {
setActiveTab(2);
Expand Down Expand Up @@ -402,7 +402,7 @@ const EditQuestion = () => {
</div> */}
<div style={{ display: 'flex', justifyContent: 'flex-end' }} className="col-12">
<Button
data-testid='next-btn'
data-testid="next-btn"
label="Next"
onClick={() => {
setActiveTab(3);
Expand Down
2 changes: 1 addition & 1 deletion app/(main)/questions/topics/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ const ManageTopics = () => {
const startContent = (
<React.Fragment>
<Button
data-testid="add-btn"
data-testid="add-btn"
icon="pi pi-plus"
className="mr-2"
onClick={(e) => {
Expand Down
8 changes: 1 addition & 7 deletions app/(main)/quiz/practice/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -219,13 +219,7 @@ const QuizPage: React.FC = () => {
const cancelFooter = (
<div>
<Button label="Cancel" icon="pi pi-times" onClick={cancelExit} className="p-button-text" />
<Button
label="Quit"
icon="pi pi-save"
onClick={confirmExit}
autoFocus
disabled={isAbandoning}
/>
<Button label="Quit" icon="pi pi-save" onClick={confirmExit} autoFocus disabled={isAbandoning} />
</div>
);

Expand Down
2 changes: 2 additions & 0 deletions lib/RouteGuard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ export const RouteGuard = {
return this.accessibleBy(['student', 'tutor']);
case '/dashboard':
return this.accessibleBy(['student', 'tutor']);
case '/documentation':
return this.accessibleBy(['student', 'tutor']);
default:
return false;
}
Expand Down

0 comments on commit 557f4b9

Please sign in to comment.