Skip to content

Commit

Permalink
update toggle value name
Browse files Browse the repository at this point in the history
Signed-off-by: huongg <[email protected]>
  • Loading branch information
Huongg committed Jun 4, 2024
1 parent d60167c commit 8c06a8d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/shareable-url-modal/shareable-url-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const ShareableUrlModal = ({ onToggleModal, visible }) => {
const [hostingPlatformLocalStorageVal, setHostingPlatformLocalStorageVal] =
useState(loadLocalStorage(localStorageSharableUrl) || {});
const [publishedPlatformKey, setPublishedPlatformKey] = useState(undefined);
const [toggleValue, setTogleValue] = useState(false);
const [isPreviewEnabled, setIsPreviewEnabled] = useState(true);

useEffect(() => {
async function fetchPackageCompatibility() {
Expand Down Expand Up @@ -238,8 +238,8 @@ const ShareableUrlModal = ({ onToggleModal, visible }) => {
}}
onBuckNameChange={(value) => onChange('bucket_name', value)}
onEndpointChange={(value) => onChange('endpoint', value)}
setTogleValue={setTogleValue}
toggleValue={toggleValue}
setTogleValue={setIsPreviewEnabled}
toggleValue={isPreviewEnabled}
visible={visible}
/>
)}
Expand Down

0 comments on commit 8c06a8d

Please sign in to comment.