Skip to content

Commit

Permalink
Merge pull request #2111 from Shoaibdev7/clean-up-blue-print-modal
Browse files Browse the repository at this point in the history
[Blueprint]: Clean Up `Create and Edit` Type Node Modal
  • Loading branch information
Rassl authored Sep 12, 2024
2 parents f347ce5 + 737dbe8 commit cceefcd
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -389,11 +389,13 @@ export const Editor = ({

return (
<Flex>
<Flex direction="row" justify="flex-end">
<HeaderRow>
<HeaderText>{selectedSchema ? 'Edit Type' : 'Create Type'}</HeaderText>
<CloseButton data-testid="close-sidebar-sub-view" onClick={onCancel}>
<ClearIcon />
</CloseButton>
</Flex>
</HeaderRow>
<LineBarWrapper />
<Flex>
<FormProvider {...form}>
<form id="add-type-form" onSubmit={onSubmit}>
Expand Down Expand Up @@ -541,6 +543,13 @@ const CustomButton = styled(Button)`
margin: 0 auto !important;
`

const LineBarWrapper = styled.div`
border-bottom: 1px solid ${colors.black};
width: calc(100% + 32px);
margin: 0 -16px 16px;
opacity: 0.3;
`

const ClipLoaderWrapper = styled.span`
margin-top: 2px;
`
Expand All @@ -563,6 +572,16 @@ const CloseButton = styled(Flex)`
font-size: 32px;
color: ${colors.white};
cursor: pointer;
svg {
color: ${colors.GRAY6};
}
&:hover {
svg {
color: ${colors.white};
}
}
`

const StyledError = styled(Flex)`
Expand All @@ -580,3 +599,21 @@ const LineBar = styled.div`
opacity: 0.5;
margin-left: -16px;
`

const HeaderRow = styled(Flex)`
flex-direction: row;
justify-content: space-between;
align-items: center;
width: 100%;
margin-bottom: 16px;
`

const HeaderText = styled(Text)`
font-family: Barlow;
font-size: 22px;
font-weight: 600;
line-height: 16px;
letter-spacing: 0.01em;
text-align: left;
color: ${colors.white};
`
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const HeaderWrapper = styled(Flex)`
border-top-right-radius: 9px;
justify-content: space-between;
padding: 17px;
border-bottom: 1px solid ${colors.black};
`

const IconWrapper = styled.div`
Expand Down

0 comments on commit cceefcd

Please sign in to comment.