-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b85ee71
commit 121183a
Showing
7 changed files
with
138 additions
and
36 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
36 changes: 36 additions & 0 deletions
36
apps/react-starter/src/pages/application-settings/index.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,36 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2024 Siemens AG | ||
* | ||
* SPDX-License-Identifier: MIT | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
import { IxToggle, IxTypography, IxUpload } from "@siemens/ix-react"; | ||
import styles from "./styles.module.css"; | ||
import { useTranslation } from "react-i18next"; | ||
|
||
export default function ApplicationSettings() { | ||
const { t } = useTranslation(); | ||
return ( | ||
<section className={styles.ApplicationSettings}> | ||
<section> | ||
<IxTypography format="h4" className={styles.Headline}> | ||
{t("settings.notification")} | ||
</IxTypography> | ||
<IxToggle textOn={t("settings.toggle-on")} textOff={t("settings.toggle-off")}></IxToggle> | ||
</section> | ||
<section> | ||
<IxTypography format="h4" className={styles.Headline}> | ||
{t("settings.import-device")} | ||
</IxTypography> | ||
<IxUpload | ||
className={styles.Upload} | ||
i18nUploadFile={t("settings.upload-button")} | ||
selectFileText={t("settings.upload-text")} | ||
></IxUpload> | ||
</section> | ||
</section> | ||
); | ||
} |
24 changes: 24 additions & 0 deletions
24
apps/react-starter/src/pages/application-settings/styles.module.css
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 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2024 Siemens AG | ||
* | ||
* SPDX-License-Identifier: MIT | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
.ApplicationSettings { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 1.5rem; | ||
} | ||
|
||
.Headline { | ||
margin-bottom: 0.75rem; | ||
} | ||
|
||
.Upload { | ||
width: fit-content; | ||
width: 25rem; | ||
max-width: 25rem; | ||
} |
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