-
Notifications
You must be signed in to change notification settings - Fork 4
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
Showing
7 changed files
with
113 additions
and
37 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
38 changes: 38 additions & 0 deletions
38
src/components/TopBar/DeveloperUtility/TranslationOption.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,38 @@ | ||
import React from 'react'; | ||
import AdjustmentWrapper from './AdjustmentWrapper'; | ||
import { OptionButton } from './OptionList'; | ||
import useSettings from '@stores/settingsStore'; | ||
|
||
type Props = {}; | ||
|
||
const TranslationOption = (props: Props) => { | ||
const { translationMode, setTranslationMode } = useSettings((state) => ({ | ||
translationMode: state.translationMode, | ||
setTranslationMode: state.setTranslationMode, | ||
})); | ||
|
||
return ( | ||
<AdjustmentWrapper title="Jenis Terjemahan"> | ||
<div className="bg-gray-100 dark:bg-slate-500 dark:text-slate-200 p-1 rounded text-black"> | ||
<div className="flex items-center relative"> | ||
<OptionButton | ||
onClick={() => setTranslationMode('word')} | ||
label="scroll otomatis per kata" | ||
active={translationMode === 'word'} | ||
> | ||
Kata | ||
</OptionButton> | ||
<OptionButton | ||
onClick={() => setTranslationMode('verse')} | ||
label="scroll otomatis per ayah" | ||
active={translationMode === 'verse'} | ||
> | ||
Ayah | ||
</OptionButton> | ||
</div> | ||
</div> | ||
</AdjustmentWrapper> | ||
); | ||
}; | ||
|
||
export default TranslationOption; |
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
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
63a35f2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
pustaka-islam – ./
pustaka-islam-git-master-axcamz.vercel.app
pustakaislam.vercel.app
pustaka-islam-axcamz.vercel.app