Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENG-549 Account Refinements - Account attributes #461

Merged
merged 21 commits into from
Aug 29, 2022
Merged
Show file tree
Hide file tree
Changes from 19 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion www/src/components/Plural.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ export function PluralInner() {
element={(
<Navigate
replace
to="users"
to="edit"
/>
)}
/>
Expand Down
65 changes: 0 additions & 65 deletions www/src/components/account/Account.js

This file was deleted.

60 changes: 60 additions & 0 deletions www/src/components/account/Account.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
import {
ResponsiveLayoutContentContainer,
ResponsiveLayoutSidecarContainer,
ResponsiveLayoutSidenavContainer,
ResponsiveLayoutSpacer,
} from 'components/layout/ResponsiveLayout'
import { Flex } from 'honorable'
import { TabPanel } from 'pluralsh-design-system'
import { useRef } from 'react'

import { Outlet } from 'react-router-dom'

import AccountSideNav from './AccountSidenav'

export type DomainMappingProps = {
__typename?: 'DomainMapping'
id?: string
domain?: string
enableSso?: boolean
}
export type RootUser = {
__typename?: 'User'
id?: 'string'
}
export type Account = {
__typename: 'Account'
id?: string
rootUser?: RootUser
name?: string
domainMappings?: DomainMappingProps[]
backgroundColor?: string
billingCustomerId?: string
}

export function Account() {
const tabStateRef = useRef<any>()

return (
<Flex
height="100%"
width="100%"
overflowY="hidden"
padding={32}
paddingTop={88}
>
<ResponsiveLayoutSidenavContainer width={240}>
<AccountSideNav tabStateRef={tabStateRef} />
</ResponsiveLayoutSidenavContainer>
<ResponsiveLayoutSpacer />
<TabPanel
as={<ResponsiveLayoutContentContainer />}
stateRef={tabStateRef}
>
<Outlet />
</TabPanel>
<ResponsiveLayoutSpacer />
<ResponsiveLayoutSidecarContainer width="200px" />
</Flex>
)
}
131 changes: 0 additions & 131 deletions www/src/components/account/AccountAttributes.js

This file was deleted.

Loading