Make all fields optional on entities (#121)
* Make all fields optional on entities * Rewrite tests * Add test on TableHeader Cancel button
This commit is contained in:
@ -27,7 +27,7 @@ function AppLayout({ children, user }: OwnProps) {
|
||||
return (
|
||||
<ThemeProvider theme={lightTheme}>
|
||||
<StyledLayout>
|
||||
<Navbar user={user} workspace={user?.workspace_member?.workspace} />
|
||||
<Navbar user={user} workspace={user?.workspaceMember?.workspace} />
|
||||
<StyledRightContainer>{children}</StyledRightContainer>
|
||||
</StyledLayout>
|
||||
</ThemeProvider>
|
||||
|
||||
@ -20,7 +20,7 @@ const StyledContainer = styled.button`
|
||||
`;
|
||||
|
||||
type StyledLogoProps = {
|
||||
logo: string;
|
||||
logo?: string | null;
|
||||
};
|
||||
|
||||
const StyledLogo = styled.div<StyledLogoProps>`
|
||||
|
||||
@ -20,7 +20,8 @@ export const NavbarOnCompanies = () => {
|
||||
id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6b',
|
||||
email: 'charles@twenty.com',
|
||||
displayName: 'Charles Bochet',
|
||||
workspace_member: {
|
||||
workspaceMember: {
|
||||
id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6d',
|
||||
workspace: {
|
||||
id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6b',
|
||||
displayName: 'Claap',
|
||||
|
||||
Reference in New Issue
Block a user