Cleanup, and ally stuff
This commit is contained in:
parent
74b790927e
commit
5f5eb60c02
4 changed files with 2 additions and 5 deletions
|
@ -119,7 +119,6 @@ const LinkPreview: React.FC<IProps> = ({ link }: IProps) => {
|
||||||
const [showHSOptions, setShowHSOPtions] = useState(false);
|
const [showHSOptions, setShowHSOPtions] = useState(false);
|
||||||
|
|
||||||
const hses = useHSs(link);
|
const hses = useHSs(link);
|
||||||
console.log(hses);
|
|
||||||
|
|
||||||
if (!hses) {
|
if (!hses) {
|
||||||
content = (
|
content = (
|
||||||
|
|
|
@ -32,7 +32,7 @@ const StyledCheckbox: React.FC<IProps> = ({
|
||||||
<input {...otherProps} type="checkbox" />
|
<input {...otherProps} type="checkbox" />
|
||||||
{/* Using the div to center the image */}
|
{/* Using the div to center the image */}
|
||||||
<div className="styledCheckboxWrapper">
|
<div className="styledCheckboxWrapper">
|
||||||
<img src={tick} />
|
<img src={tick} alt="" />
|
||||||
</div>
|
</div>
|
||||||
{children}
|
{children}
|
||||||
</label>
|
</label>
|
||||||
|
|
|
@ -28,7 +28,7 @@ const Toggle: React.FC<IProps> = ({ children, ...props }: IProps) => (
|
||||||
<label className="toggle">
|
<label className="toggle">
|
||||||
{children}
|
{children}
|
||||||
<input type="checkbox" {...props} />
|
<input type="checkbox" {...props} />
|
||||||
<img src={chevron} />
|
<img src={chevron} alt="" />
|
||||||
</label>
|
</label>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -68,8 +68,6 @@ export const INITIAL_STATE: State = {
|
||||||
};
|
};
|
||||||
|
|
||||||
export const unpersistedReducer = (state: State, action: Action): State => {
|
export const unpersistedReducer = (state: State, action: Action): State => {
|
||||||
console.log('reducing');
|
|
||||||
console.log(action);
|
|
||||||
switch (action.action) {
|
switch (action.action) {
|
||||||
case ActionType.SetAny:
|
case ActionType.SetAny:
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in a new issue