forked from OwnZones/orchestration-gui
-
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: default multiviewers are updated and other mv-updated
- Loading branch information
Showing
14 changed files
with
332 additions
and
174 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
27 changes: 27 additions & 0 deletions
27
src/components/modal/configureMultiviewModal/MultiviewLayoutSettings/Checkbox.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,27 @@ | ||
import { useTranslate } from '../../../../i18n/useTranslate'; | ||
|
||
type RemoveLayoutButtonProps = { | ||
handleCheckboxChange: () => void; | ||
isChecked: boolean; | ||
}; | ||
|
||
export default function Checkbox({ | ||
handleCheckboxChange, | ||
isChecked | ||
}: RemoveLayoutButtonProps) { | ||
const t = useTranslate(); | ||
return ( | ||
<div className="flex items-center flex-row mb-5 pl-2 w-[50%]"> | ||
<input | ||
type="checkbox" | ||
id="clearPreset" | ||
className="w-5 h-5 text-gray-500 accent-gray-500" | ||
checked={isChecked} | ||
onChange={handleCheckboxChange} | ||
/> | ||
<label htmlFor="clearPreset" className="pl-2"> | ||
{t('preset.clear_layout')} | ||
</label> | ||
</div> | ||
); | ||
} |
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
Oops, something went wrong.