Add user name to share screen
This commit is contained in:
parent
b2e0cdf3d5
commit
7a83557dc9
2 changed files with 14 additions and 4 deletions
|
|
@ -16,6 +16,7 @@ interface SharedQuizData {
|
|||
gameConfig: GameConfig | null;
|
||||
questions: Question[];
|
||||
questionCount: number;
|
||||
sharedBy?: string | null;
|
||||
}
|
||||
|
||||
interface SharedQuizViewProps {
|
||||
|
|
@ -156,7 +157,9 @@ export const SharedQuizView: React.FC<SharedQuizViewProps> = ({ onHostQuiz, shar
|
|||
</div>
|
||||
|
||||
<div className="text-center mb-6">
|
||||
<p className="text-gray-400 font-bold text-sm uppercase tracking-wider mb-1">Shared Quiz</p>
|
||||
<p className="text-gray-400 font-bold text-sm uppercase tracking-wider mb-1">
|
||||
{quizData.sharedBy ? `Shared by ${quizData.sharedBy}` : 'Shared Quiz'}
|
||||
</p>
|
||||
<h1 className="text-3xl md:text-4xl font-black text-gray-800 mb-2">{quizData.title}</h1>
|
||||
<p className="text-gray-500 font-medium">
|
||||
{quizData.questionCount} question{quizData.questionCount !== 1 ? 's' : ''}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue