generated from muhtadeetaron/nextjs-template
fix(ts): fix interfaces for type safety
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
// lib/gallery-views.tsx
|
||||
import { Link } from "lucide-react";
|
||||
import Link from "next/link";
|
||||
import Image from "next/image";
|
||||
|
||||
interface ExamResults {
|
||||
@ -8,6 +8,11 @@ interface ExamResults {
|
||||
answers: string[];
|
||||
}
|
||||
|
||||
interface LinkedViews {
|
||||
id: string;
|
||||
content: React.ReactNode;
|
||||
}
|
||||
|
||||
export const getResultViews = (examResults: ExamResults | null) => [
|
||||
{
|
||||
id: 1,
|
||||
@ -99,7 +104,7 @@ export const getResultViews = (examResults: ExamResults | null) => [
|
||||
},
|
||||
];
|
||||
|
||||
export const getLinkedViews = () => [
|
||||
export const getLinkedViews = (): LinkedViews[] => [
|
||||
{
|
||||
id: "1",
|
||||
content: (
|
||||
|
||||
Reference in New Issue
Block a user