-
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.
feat: refactoring and added content to the kitchen sink page
- Loading branch information
1 parent
a94e80f
commit 71a4f1c
Showing
7 changed files
with
37 additions
and
30 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
2 changes: 1 addition & 1 deletion
2
src/components/VersionSwitch/Version.astro → src/components/Version.astro
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
File renamed without changes.
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 type { FC } from "react"; | ||
import { ComboBox } from "@adjust/components"; | ||
import { useStore } from "@nanostores/react"; | ||
|
||
import { $versions, changeVersionValue } from "@store/versionsStore"; | ||
|
||
const VersionSwitch: FC = () => { | ||
const versions = useStore($versions); | ||
|
||
if (versions.items.length < 1) { | ||
// we don`t need to display the version switch when we have only one or less options | ||
return null; | ||
} | ||
|
||
return ( | ||
<div className="flex flex-col w-full min-h-90px justify-start gap-y-8 bg-slate-100 p-6 rounded-lg mb-14 md:flex-row md:items-center md:gap-x-8"> | ||
<label>Select your SDK version:</label> | ||
<ComboBox | ||
value={versions.currentVersion} | ||
options={versions.items} | ||
onChange={changeVersionValue} | ||
/> | ||
</div> | ||
); | ||
}; | ||
|
||
export default VersionSwitch; |
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