[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:
parent
eb20f1c816
commit
cd48b67a74
15 changed files with 177 additions and 40 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue