This is a very blurry line. People in the industry always will be the first to tell you you owe companies no loyalty and to always look out for yourself first and foremost. But then when someone says they slack off on code reviews while they're interviewing suddenly they should be taking pride in their craft. As a matter of course I want to do a good job each and every day. But it's still a job and if I'm unhappy to the point I'm actively searching for another job do I still owe that company my best? I think multiple different people will have multiple different answers for that.
In my opinion, pride in one's craft doesn't depend upon output quantity, but quality. It would be acceptable to slack by working less, taking longer to do things, etc. But the quality of what you do insert into the codebase, and allow to be inserted, should always be the highest. Nobody will remember how quickly or slowly you did a task, but they will see your name beside some shitty code in a git blame or PR approval and think "what the fuck was this guy doing?". To me, that's where an engineer should never impugn his reputation. Just my opinion though.