-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
2aa9e57
commit ccbd63a
Showing
13 changed files
with
211 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 0 additions & 42 deletions
42
apps/hash-frontend/src/pages/settings/organizations/shared/org-settings-container.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
73 changes: 73 additions & 0 deletions
73
apps/hash-frontend/src/pages/settings/shared/settings-page-container.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
import { Box, Stack, Typography } from "@mui/material"; | ||
import { forwardRef, PropsWithChildren, ReactNode } from "react"; | ||
|
||
export const SettingsPageContainer = forwardRef< | ||
HTMLSpanElement, | ||
PropsWithChildren<{ | ||
topRightElement?: ReactNode; | ||
heading: ReactNode; | ||
subHeading?: ReactNode; | ||
disableContentWrapper?: boolean; | ||
sectionLabel?: string; | ||
}> | ||
>( | ||
( | ||
{ | ||
topRightElement, | ||
children, | ||
heading, | ||
subHeading, | ||
disableContentWrapper, | ||
sectionLabel, | ||
}, | ||
ref, | ||
) => { | ||
return ( | ||
<> | ||
<Box marginBottom={4}> | ||
<Stack | ||
direction="row" | ||
alignItems="center" | ||
justifyContent="space-between" | ||
> | ||
<Typography ref={ref} variant="h2" mt={-1} fontWeight="bold"> | ||
{heading} | ||
</Typography> | ||
{topRightElement} | ||
</Stack> | ||
{subHeading ? ( | ||
<Typography | ||
variant="h3" | ||
sx={{ | ||
marginTop: 1, | ||
fontSize: 24, | ||
color: ({ palette }) => palette.gray[60], | ||
fontWeight: 400, | ||
}} | ||
> | ||
{subHeading} | ||
</Typography> | ||
) : null} | ||
</Box> | ||
{sectionLabel && ( | ||
<Typography component="h4" variant="mediumCaps" mb={2}> | ||
{sectionLabel} | ||
</Typography> | ||
)} | ||
{disableContentWrapper ? ( | ||
children | ||
) : ( | ||
<Box | ||
sx={({ palette }) => ({ | ||
background: palette.common.white, | ||
borderRadius: 1.5, | ||
boxShadow: "0px 1px 5px 0px rgba(27, 33, 40, 0.07)", | ||
})} | ||
> | ||
{children} | ||
</Box> | ||
)} | ||
</> | ||
); | ||
}, | ||
); |
16 changes: 16 additions & 0 deletions
16
apps/hash-frontend/src/shared/icons/infinity-solid-icon.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { SvgIcon, SvgIconProps } from "@mui/material"; | ||
import { FunctionComponent } from "react"; | ||
|
||
export const InfinitySolidIcon: FunctionComponent<SvgIconProps> = (props) => { | ||
return ( | ||
<SvgIcon | ||
{...props} | ||
height="16" | ||
width="20" | ||
viewBox="0 0 640 512" | ||
fill="none" | ||
> | ||
<path d="M0 241.1C0 161 65 96 145.1 96c38.5 0 75.4 15.3 102.6 42.5L320 210.7l72.2-72.2C419.5 111.3 456.4 96 494.9 96C575 96 640 161 640 241.1v29.7C640 351 575 416 494.9 416c-38.5 0-75.4-15.3-102.6-42.5L320 301.3l-72.2 72.2C220.5 400.7 183.6 416 145.1 416C65 416 0 351 0 270.9V241.1zM274.7 256l-72.2-72.2c-15.2-15.2-35.9-23.8-57.4-23.8C100.3 160 64 196.3 64 241.1v29.7c0 44.8 36.3 81.1 81.1 81.1c21.5 0 42.2-8.5 57.4-23.8L274.7 256zm90.5 0l72.2 72.2c15.2 15.2 35.9 23.8 57.4 23.8c44.8 0 81.1-36.3 81.1-81.1V241.1c0-44.8-36.3-81.1-81.1-81.1c-21.5 0-42.2 8.5-57.4 23.8L365.3 256z" />{" "} | ||
</SvgIcon> | ||
); | ||
}; |
Oops, something went wrong.