diff --git a/web/components/button.tsx b/web/components/button.tsx index 8cdeacdd..d279d9a0 100644 --- a/web/components/button.tsx +++ b/web/components/button.tsx @@ -39,7 +39,7 @@ export function Button(props: { color === 'yellow' && 'bg-yellow-400 text-white hover:bg-yellow-500', color === 'blue' && 'bg-blue-400 text-white hover:bg-blue-500', color === 'indigo' && 'bg-indigo-500 text-white hover:bg-indigo-600', - color === 'gray' && 'bg-gray-200 text-gray-700 hover:bg-gray-300', + color === 'gray' && 'bg-gray-100 text-gray-600 hover:bg-gray-200', className )} disabled={disabled} diff --git a/web/components/contract/contract-description.tsx b/web/components/contract/contract-description.tsx index d9864186..f9db0cd9 100644 --- a/web/components/contract/contract-description.tsx +++ b/web/components/contract/contract-description.tsx @@ -24,13 +24,10 @@ export function ContractDescription(props: { return (
{isCreator || isAdmin ? ( - + ) : ( )} - {isAdmin && !isCreator && ( -
(👆 admin powers)
- )}
) } @@ -39,8 +36,8 @@ function editTimestamp() { return `${dayjs().format('MMM D, h:mma')}: ` } -function RichEditContract(props: { contract: Contract }) { - const { contract } = props +function RichEditContract(props: { contract: Contract; isAdmin?: boolean }) { + const { contract, isAdmin } = props const [editing, setEditing] = useState(false) const [editingQ, setEditingQ] = useState(false) const [isSubmitting, setIsSubmitting] = useState(false) @@ -90,9 +87,11 @@ function RichEditContract(props: { contract: Contract }) { <> - + + {isAdmin && 'Admin: '} -