2
0

feat(editor): Team workspaces

This commit is contained in:
Baptiste Arnaud
2022-05-13 15:22:44 -07:00
parent 6c2986590b
commit f0fdf08b00
132 changed files with 3354 additions and 1228 deletions

View File

@ -1,5 +1,5 @@
import { Plan, User } from 'db'
import { isNotDefined, sendRequest } from 'utils'
import { User } from 'db'
import { sendRequest } from 'utils'
export const updateUser = async (id: string, user: User) =>
sendRequest({
@ -7,6 +7,3 @@ export const updateUser = async (id: string, user: User) =>
method: 'PUT',
body: user,
})
export const isFreePlan = (user?: User) =>
isNotDefined(user) || user?.plan === Plan.FREE