Skip to content

Commit dcddf08

Browse files
committed
feat: update icon and add line breaks
1 parent f888922 commit dcddf08

2 files changed

Lines changed: 7 additions & 13 deletions

File tree

packages/slice-machine/src/features/customTypes/customTypesBuilder/ImportSlicesFromLibraryModal/EmptyView.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ import { ReactNode } from "react";
1212
type EmptyViewProps = {
1313
title: string;
1414
description?: string;
15-
// TODO: Replace prismic with github icon when available
16-
icon: "prismic" | "alert" | "logout";
15+
icon: "github" | "alert" | "logout";
1716
color?: "purple" | "tomato";
1817
actions?: ReactNode;
1918
};

packages/slice-machine/src/features/customTypes/customTypesBuilder/ImportSlicesFromLibraryModal/LibrarySlicesDialogContent.tsx

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -287,17 +287,11 @@ function LibrarySlicesDialogSuspenseContent(
287287
) : (
288288
<EmptyView
289289
title="GitHub connection required"
290-
description="Connect your GitHub account to access repositories and set a library for this project."
290+
description={`Connect your GitHub account to access
291+
repositories and set a library for this project.`}
291292
icon="alert"
292293
actions={
293-
<Button
294-
textWeight="normal"
295-
size="medium"
296-
color="grey"
297-
// TODO: Replace with github icon when available
298-
startIcon="prismic"
299-
asChild
300-
>
294+
<Button size="medium" color="grey" startIcon="github" asChild>
301295
<a href={configureUrl} target="_blank">
302296
Connect GitHub
303297
</a>
@@ -353,7 +347,7 @@ function RepositorySelector(props: RepositorySelectorProps) {
353347
endIcon="arrowDropDown"
354348
textWeight="normal"
355349
sx={{ width: 420 }}
356-
startIcon="label"
350+
startIcon="github"
357351
color="grey"
358352
size="large"
359353
flexContent
@@ -479,7 +473,8 @@ function LibrarySlicesLoggedInContent(props: LibrarySlicesDialogContentProps) {
479473
<DialogTabs selectedTab="library" onSelectTab={props.onSelectTab} />
480474
<EmptyView
481475
title="You are logged out"
482-
description="This action requires you to be logged in. Please log in to continue."
476+
description={`This action requires you to be logged in.
477+
Please log in to continue.`}
483478
icon="logout"
484479
actions={
485480
<Button size="small" color="grey" onClick={onLogin}>

0 commit comments

Comments
 (0)