-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into cr-3096/wrong-board-password-hint
- Loading branch information
Showing
9 changed files
with
51 additions
and
40 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
31 changes: 0 additions & 31 deletions
31
...components/SettingsDialog/ExportBoard/ExportHintHiddenColumns/ExportHintHiddenColumns.tsx
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
src/components/SettingsDialog/ExportBoard/ExportHintHiddenColumns/index.ts
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
35 changes: 35 additions & 0 deletions
35
...components/SettingsDialog/ExportBoard/ExportHintHiddenContent/ExportHintHiddenContent.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,35 @@ | ||
import {useTranslation} from "react-i18next"; | ||
import {ReactComponent as InfoIcon} from "assets/icon-warning.svg"; | ||
import {useAppSelector} from "store"; | ||
import "./ExportHintHiddenContent.scss"; | ||
|
||
const ExportHintHiddenContent = () => { | ||
const {t} = useTranslation(); | ||
|
||
const hiddenColumns = useAppSelector((state) => state.columns.filter((col) => !col.visible)); | ||
const showNotesOfOtherParticipants = useAppSelector((state) => state.board.data?.showNotesOfOtherUsers); | ||
|
||
if (hiddenColumns.length || !showNotesOfOtherParticipants) { | ||
return ( | ||
<div className="hint-hidden-columns__grid-container"> | ||
<InfoIcon className="hint-hidden-columns__info-icon" /> | ||
{hiddenColumns.length > 0 && ( | ||
<> | ||
<span className="hint-hidden-columns__info-text">{t("ExportBoardOption.hintHiddenColumns")}</span> | ||
<div className="hint-hidden-columns__columns-list-container"> | ||
<ul className="hint-hidden-columns__columns-list"> | ||
{hiddenColumns.map((hiddenCol) => ( | ||
<li key={hiddenCol.id}>{hiddenCol.name}</li> | ||
))} | ||
</ul> | ||
</div> | ||
</> | ||
)} | ||
{!showNotesOfOtherParticipants && <span className="hint-hidden-columns__info-text">{t("ExportBoardOption.hintHiddenNotes")}</span>} | ||
</div> | ||
); | ||
} | ||
return null; | ||
}; | ||
|
||
export default ExportHintHiddenContent; |
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 |
---|---|---|
@@ -1,2 +1 @@ | ||
export * from "./ExportBoard"; | ||
export * from "./ExportHintHiddenColumns"; |
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