update question button
This commit is contained in:
parent
7acac0a5d6
commit
76dd07f82b
|
@ -2,6 +2,7 @@ import Link from 'next/link'
|
|||
import clsx from 'clsx'
|
||||
import { firebaseLogin, User } from 'web/lib/firebase/users'
|
||||
import React from 'react'
|
||||
import { Button } from './button'
|
||||
|
||||
export const createButtonStyle =
|
||||
'border-w-0 mx-auto mt-4 -ml-1 w-full rounded-md bg-gradient-to-r py-2.5 text-base font-semibold text-white shadow-sm lg:-ml-0 h-11'
|
||||
|
@ -20,9 +21,9 @@ export const CreateQuestionButton = (props: {
|
|||
<div className={clsx('flex justify-center', className)}>
|
||||
{user ? (
|
||||
<Link href={`/create${query ? query : ''}`} passHref>
|
||||
<button className={clsx(gradient, createButtonStyle)}>
|
||||
<Button color="gradient" size='lg'>
|
||||
{overrideText ? overrideText : 'Create a question'}
|
||||
</button>
|
||||
</Button>
|
||||
</Link>
|
||||
) : (
|
||||
<button
|
||||
|
|
Loading…
Reference in New Issue
Block a user