forked from tolgee/tolgee-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes tolgee#2594
- Loading branch information
StaNov
committed
Nov 25, 2024
1 parent
ffd66ca
commit c537ec6
Showing
5 changed files
with
44 additions
and
2 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
24 changes: 24 additions & 0 deletions
24
webapp/src/views/projects/project/components/UseNamespacesCheckbox.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,24 @@ | ||
import { FC, ReactNode } from 'react'; | ||
import { Box, Checkbox, MenuItem } from '@mui/material'; | ||
|
||
import { Select } from 'tg.component/common/form/fields/Select'; | ||
import { components } from 'tg.service/apiSchema.generated'; | ||
import { FieldLabel } from 'tg.component/FormField'; | ||
import { useTranslate } from '@tolgee/react'; | ||
|
||
export const UseNamespacesCheckbox: FC<{ | ||
label?: ReactNode; | ||
name: string; | ||
}> = (props) => { | ||
return ( | ||
<Box> | ||
<FieldLabel>{props.label}</FieldLabel> | ||
<Checkbox | ||
data-cy="default-namespace-select" | ||
sx={{ mt: 0 }} | ||
name={props.name} | ||
size="small" | ||
/> | ||
</Box> | ||
); | ||
}; |
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