-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 🔥 added file format section
added file format section
- Loading branch information
1 parent
b50cd06
commit 3bb2214
Showing
55 changed files
with
1,415 additions
and
3,193 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,5 @@ | |
width: 100%; | ||
height: 100%; | ||
padding: 39px 122px 20px; | ||
background-color: #e7e7e7; | ||
background-color: #f2f2f2; | ||
} |
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
2 changes: 1 addition & 1 deletion
2
...roupCenter/GroupDetails/GroupInfo/Policies/NewPolicy/LibrariesList/LibrariesList.view.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
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
2 changes: 1 addition & 1 deletion
2
...upCenter/GroupDetails/GroupInfo/Policies/NewPolicy/SideBarFilters/SideBarFilters.view.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
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
3 changes: 2 additions & 1 deletion
3
...fo/Policies/PolicyConfiguration/NewPolicyConfiguration/NewPolicyConfiguration.module.scss
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,6 +76,7 @@ | |
font-size: 1.8rem; | ||
font-weight: 460; | ||
color: #4b4a65; | ||
white-space: nowrap; | ||
} | ||
} | ||
|
||
|
11 changes: 11 additions & 0 deletions
11
...ils/GroupInfo/Policies/PolicyConfiguration/RuleCreation/FileFormat/FileFormat.module.scss
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,11 @@ | ||
.fileFormat { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: space-between; | ||
width: 100%; | ||
height: 100%; | ||
margin-top: 15px; | ||
overflow: auto; | ||
background-color: #fefefe; | ||
border-radius: 10px; | ||
} |
43 changes: 43 additions & 0 deletions
43
...roupDetails/GroupInfo/Policies/PolicyConfiguration/RuleCreation/FileFormat/FileFormat.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,43 @@ | ||
import React, { useState } from 'react'; | ||
|
||
import FileFormatView from './FileFormat.view'; | ||
|
||
interface IProps { | ||
readonly policyLabelInput: string | null; | ||
} | ||
|
||
const FileFormat: React.FC<IProps> = (props: React.PropsWithChildren<IProps>) => { | ||
const [selectedFileFormatIndexState, setSelectedFileFormatIndexState] = useState<number>(0); | ||
const [isFileFormatClickedState, setIsFileFormatClickedState] = useState<boolean>(false); | ||
const [isEditFileFormatState, setIsEditFileFormatState] = useState<boolean>(false); | ||
|
||
const onEditFileFormatButton = () => { | ||
setIsEditFileFormatState(() => !isEditFileFormatState); | ||
}; | ||
|
||
const onFileFormatButton = () => { | ||
setIsFileFormatClickedState(() => !isFileFormatClickedState); | ||
}; | ||
|
||
const onSelectedFileFormat = (index: number) => { | ||
setSelectedFileFormatIndexState(() => index); | ||
setIsFileFormatClickedState(() => false); | ||
}; | ||
|
||
return ( | ||
<FileFormatView | ||
policyLabelInput={props.policyLabelInput} | ||
selectedFileFormatIndex={selectedFileFormatIndexState} | ||
isFileFormatClicked={isFileFormatClickedState} | ||
isEditFileFormat={isEditFileFormatState} | ||
onEditFileFormatButton={onEditFileFormatButton} | ||
onFileFormatButton={onFileFormatButton} | ||
onSelectedFileFormat={onSelectedFileFormat} | ||
/> | ||
); | ||
}; | ||
|
||
FileFormat.displayName = 'FileFormat'; | ||
FileFormat.defaultProps = {}; | ||
|
||
export default React.memo(FileFormat); |
40 changes: 40 additions & 0 deletions
40
...etails/GroupInfo/Policies/PolicyConfiguration/RuleCreation/FileFormat/FileFormat.view.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,40 @@ | ||
import React from 'react'; | ||
|
||
import classes from './FileFormat.module.scss'; | ||
import Header from './Header'; | ||
import InputCodeForm from './InputCodeForm'; | ||
|
||
interface IProps { | ||
readonly policyLabelInput: string | null; | ||
readonly selectedFileFormatIndex: number; | ||
readonly isFileFormatClicked: boolean; | ||
readonly isEditFileFormat: boolean; | ||
readonly onEditFileFormatButton: () => void; | ||
readonly onFileFormatButton: () => void; | ||
readonly onSelectedFileFormat: (index: number) => void; | ||
} | ||
|
||
const FileFormatView: React.FC<IProps> = (props: React.PropsWithChildren<IProps>) => { | ||
return ( | ||
<section className={classes['fileFormat']}> | ||
<Header | ||
policyLabelInput={props.policyLabelInput} | ||
selectedFileFormatIndex={props.selectedFileFormatIndex} | ||
isFileFormatClicked={props.isFileFormatClicked} | ||
isEditFileFormat={props.isEditFileFormat} | ||
onFileFormatButton={props.onFileFormatButton} | ||
onSelectedFileFormat={props.onSelectedFileFormat} | ||
onEditFileFormatButton={props.onEditFileFormatButton} | ||
/> | ||
<InputCodeForm | ||
selectedFileFormatIndex={props.selectedFileFormatIndex} | ||
isEditFileFormat={props.isEditFileFormat} | ||
/> | ||
</section> | ||
); | ||
}; | ||
|
||
FileFormatView.displayName = 'FileFormatView'; | ||
FileFormatView.defaultProps = {}; | ||
|
||
export default React.memo(FileFormatView); |
Oops, something went wrong.