Changes
2 changed files (+17/-3)
-
-
@@ -40,6 +40,18 @@ export const NoWorkers: Story = {decorators: [withMockedBackend([List({ workspace, workers: [] })])], }; export const NoWorkersWithWorkerAddCapability: Story = { args: { workspace: create(WorkspaceSchema, { id: { value: "ws-foo" }, workerAddKey: { key: new Uint8Array([]), }, }), }, decorators: [withMockedBackend([List({ workspace, workers: [] })])], }; export const ListLoadError: Story = { decorators: [withMockedBackend([List({ workspace, failureRate: 1 })])], };
-
-
-
@@ -59,9 +59,11 @@ </Heading><Text as="p" size="2" align="center"> ワークスペース内に労働者がまだ一人も登録されていません。 </Text> <Button asChild mt="4" size="3"> <a href={`/${workspace.id?.value}/workers/new`}>登録する</a> </Button> {workspace.workerAddKey && ( <Button asChild mt="4" size="3"> <a href={`/${workspace.id?.value}/workers/new`}>登録する</a> </Button> )} </Flex> ); }
-