Skip to content

Commit 6218c46

Browse files
committed
chore: v5 default
1 parent 775558d commit 6218c46

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

snapshots.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Copyright 2022-2024 use-ink/contracts-ui authors & contributors
2-
// SPDX-License-Identifier: GPL-3.0-only
3-
41
module.exports = {
52
__version: '13.13.3',
63
'Storage Types Contract': {

src/ui/contexts/VersionContext.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export interface VersionSupported {
1515
const VersionContext = createContext<VersionSupported | undefined>(undefined);
1616

1717
export const VersionContextProvider = ({ children }: React.PropsWithChildren) => {
18-
const [version, setVersion] = useLocalStorage<InkVersion>(LOCAL_STORAGE_KEY.VERSION, 'v6');
18+
const [version, setVersion] = useLocalStorage<InkVersion>(LOCAL_STORAGE_KEY.VERSION, 'v5');
1919

2020
useEffect(() => setVersion(version), [version]);
2121

@@ -33,4 +33,4 @@ export const useVersion = () => {
3333
};
3434

3535
export const getVersion = () =>
36-
(localStorage.getItem(LOCAL_STORAGE_KEY.VERSION) as InkVersion | null) || 'v6';
36+
(localStorage.getItem(LOCAL_STORAGE_KEY.VERSION) as InkVersion | null) || 'v5';

src/ui/layout/sidebar/VersionSelect.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ export function VersionSelect() {
55
const { version, setVersion } = useVersion();
66
const dropdownOptions = [
77
{
8-
label: 'ink! v6 (default)',
9-
value: 'v6',
8+
label: 'ink! v5 (default)',
9+
value: 'v5',
1010
},
1111
{
12-
label: 'ink! v5',
13-
value: 'v5',
12+
label: 'ink! v6',
13+
value: 'v6',
1414
},
1515
];
1616
return (

0 commit comments

Comments
 (0)