[refactor] moves loading spinner logic to function in Restaurant component
[refactor] moves loading spinner logic to function in Restaurant component

carlbernardo/gut,gut-js/gut,carlbernardo/gut,gut-js/gut