Skip to content

Commit

Permalink
refactor(cli): fix update and remove hiding for the empty schema
Browse files Browse the repository at this point in the history
  • Loading branch information
RitaDias authored and skogsmaskin committed Apr 25, 2022
1 parent 0326501 commit e1ce823
Showing 1 changed file with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,14 @@ import React from 'react'
import StudioRoot from 'part:@sanity/default-layout/root'
import {useCurrentUser} from '@sanity/base/hooks'
import HelloSanityTutorial from './HelloSanityTutorial'
import styled from 'styled-components'

// Hide the empty schema message
const Wrapper = styled.div`
height: 100%;
*[data-testid='missing-document-types-message'] {
display: none;
}
`

export default function CustomDefaultLayout() {
const currentUser = useCurrentUser()

return (
<Wrapper>
<>
{currentUser.value && <HelloSanityTutorial />}
<StudioRoot />
</Wrapper>
</>
)
}

0 comments on commit e1ce823

Please sign in to comment.