-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: iterate on configurator (#3364)
* feat: iterate on configurator * feat: move embed code button (#3365) * feat: move embed code button * feat: add snackbar click to copy (#3366) * feat: add snackbar click to copy * feat: snackbar set timeout to 3s * feat: revert click away and font fix * feat: embed code button styling * feat: embed code button refactor * feat: remove comments
- Loading branch information
1 parent
c36beb6
commit c4ba4bb
Showing
7 changed files
with
153 additions
and
82 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
14 changes: 14 additions & 0 deletions
14
apps/widget-configurator/src/app/configurator/hooks/useEmbedDialogState.ts
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,14 @@ | ||
import { useState } from 'react' | ||
|
||
export function useEmbedDialogState(initialOpen = false) { | ||
const [open, setOpen] = useState(initialOpen) | ||
|
||
const handleOpen = () => setOpen(true) | ||
const handleClose = () => setOpen(false) | ||
|
||
return { | ||
dialogOpen: open, | ||
handleDialogClose: handleClose, | ||
handleDialogOpen: handleOpen, | ||
} | ||
} |
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
Oops, something went wrong.