[chore] Sponsors in README (#301)

* Add images, read me links

* Add API route for sponsor image

* Update cache max age
This commit is contained in:
Steve Ruiz 2021-11-19 12:59:08 +00:00 committed by GitHub
parent eb20f1c816
commit cd48b67a74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 177 additions and 40 deletions

View file

@ -38,7 +38,15 @@ export default function MultiplayerEditor({
// Inner Editor
function Editor({ roomId, isSponsor }: { roomId: string; isUser; isSponsor: boolean }) {
function Editor({
roomId,
isUser,
isSponsor,
}: {
roomId: string
isUser: boolean
isSponsor: boolean
}) {
const [docId] = React.useState(() => Utils.uniqueId())
const [app, setApp] = React.useState<TldrawApp>()
@ -175,7 +183,7 @@ function Editor({ roomId, isSponsor }: { roomId: string; isUser; isSponsor: bool
showPages={false}
showSponsorLink={isSponsor}
onSignIn={isSponsor ? undefined : onSignIn}
onSignOut={onSignOut}
onSignOut={isUser ? onSignOut : undefined}
{...fileSystemEvents}
/>
</div>