Skip to content

Commit

Permalink
Placeholder for Genai page.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtan2000 committed Aug 27, 2024
1 parent 69952e5 commit b39e7b2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
16 changes: 16 additions & 0 deletions app/(main)/genai/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
'use client';
import React from 'react';

const GenAi: React.FC = () => {
return (
<div className="grid">
<div className="col-12">
<div className="card">
<h5>GenAI</h5>
</div>
</div>
</div>
);
};

export default GenAi;
2 changes: 1 addition & 1 deletion layout/AppMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const AppMenu = () => {
},
{
label: 'Google AI',
items: [{ label: 'Generate Question', icon: 'pi pi-fw pi-microchip-ai', to: '/questions/genai', visible: accessibleBy(['admin', 'tutor']) }],
items: [{ label: 'Generate Question', icon: 'pi pi-fw pi-microchip-ai', to: '/genai', visible: accessibleBy(['admin', 'tutor']) }],
visible: accessibleBy(['admin', 'tutor'])
}
];
Expand Down
2 changes: 1 addition & 1 deletion lib/RouteGuard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const RouteGuard = {
return this.accessibleBy(['admin', 'tutor']);
case '/classes':
return this.accessibleBy(['admin', 'tutor']);
case '/questions/genai':
case '/genai':
return this.accessibleBy(['admin', 'tutor']);
default:
return false;
Expand Down

0 comments on commit b39e7b2

Please sign in to comment.